Automated summary
Guides the writing of C++ code using the generated `axllm` package to build RLM agents with tools, child agents, MCP clients, citations, and a persistent playbook.
Strengths
- Grounds code generation in the package's real artifacts: `API.md`, `axir-api.json`, the capability manifest, and runnable examples.
- Covers a wide functional surface: clarification/discovery/recall/final/respond envelopes, evidence citations, stage-owned instructions, and saved/restored runtime state.
- Clearly separates `provider-api` examples (with credentials) from `no-key` examples for deterministic local checks and request mapping.
- States that AxIR is the source of truth, so packages should be regenerated when docs diverge from source.
Limitations
- Highly specific to the C++ `axllm` ecosystem; useless for generic C++ or other agent libraries.
- Assumes the generated package and its reference files (API docs, manifest, examples) are already present in the project.
- Does not cover TypeScript API semantics, which are deliberately out of scope.
Use it whenever an agent must produce C++ code built on `axllm`, especially RLM agents with tools, MCP, citations, or persistent playbook learning.
Avoid it for C++ work unrelated to `axllm`, or when editing the TypeScript package and its own APIs.
Security analysis
SafeThis is a pure documentation/instruction file for writing C++ code against a generated package (axllm). It contains no executable commands, no curl|sh, no file deletion, no credential or token exfiltration, and no obfuscated payloads. Mentions of network support and MCP transports describe an API surface rather than instructing the agent to reach out, and the guardrails explicitly tell the agent to rely on package examples and to use provider-credential examples only when the user explicitly has credentials. No allowed-tools are declared, so there is no meaningful execution risk.
No concerns found
How this analysis is madeExamples
Write a C++ program using the axllm package that creates an RLM agent with one child agent for summarization, then prints the typed final answer.Using axllm in C++, build an agent that requires evidence citations from its tools and records run-end failures into a persistent playbook; show where to observe citation updates.Add a no-tool directResponse path to my axllm C++ agent and show how to save and restore its runtime state around a long-running task.name: "ax-cpp-agent"
description: "Use when writing C++ code with axllm for agents, child delegation, tools, MCP, citations, persistent playbook learning, stage instructions, runtime state, final typed responses, and direct-respond executor skipping."
version: "24.0.5"
AxAgent For C++
This skill helps an agent write C++ code with the generated Ax package axllm. Use the generated package API, examples, and manifests; do not import TypeScript-only APIs unless you are editing the TypeScript package.
When To Use
- Create an RLM agent with tools, child agents, or MCP clients.
- Use clarification, discovery, recall, final, or respond envelopes.
- Require evidence citations, attach a persistent playbook, or add stage-owned actor instructions.
- Harvest run-end failures into the playbook and observe citation or playbook updates.
- Skip the executor stage for no-tool tasks with a distiller
respondenvelope (directResponse, on by default). - Save and restore agent runtime state around long-running tasks.
Package Facts
- Language: C++.
- Package:
axllm. - Package API docs:
API.mdandaxir-api.json. - Capability manifest:
axir-capabilities.json. - Runnable examples:
examples/. - Real network support: yes.
- Scripted no-key transport support: yes.
- Runtime profiles:
javascript-quickjs,python-pyodide.
Core Pattern
auto helper = axllm::agent("question:string -> answer:string");
auto out = helper.forward(llm, { {"question", "How should I proceed?"} });
Relevant API Surface
- Agents And RLM:
axllm::agent,axllm::AxAgent - MCP:
axllm::AxMCPClient,axllm::AxMCPStreamableHTTPTransport,axllm::AxMCPStdioTransport - Runtime Profiles:
axllm::ProcessCodeRuntime,axllm::RuntimeCapabilities,axllm::RuntimeEnvelope,javascript-quickjs,python-pyodide
Guardrails
- Start from package examples for exact native syntax before inventing a new call shape.
- Use
provider-apiexamples only when the user explicitly has provider credentials available. - Use
no-keyexamples for deterministic local checks and provider request mapping. - Treat AxIR as the source of generated package truth: if package docs disagree with source code, update the compiler and regenerate packages.
- Do not copy repo-maintainer skills from
tools/*/skills/into user packages.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/c-agent-with-axllm-mt59owto' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/c-agent-with-axllm-mt59owto/download' --output '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md.part' && mv '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md.part' '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && test -s '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ax-cpp-agent' && cp -R '.skill-downloads/c-agent-with-axllm-mt59owto' '.claude/skills/ax-cpp-agent'Cursor
test -f '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && test -s '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/ax-cpp-agent' && cp -R '.skill-downloads/c-agent-with-axllm-mt59owto' '.cursor/skills/ax-cpp-agent'Codex
test -f '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && test -s '.skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/ax-cpp-agent' && cp -R '.skill-downloads/c-agent-with-axllm-mt59owto' '.agents/skills/ax-cpp-agent'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/c-agent-with-axllm-mt59owto'openskills read 'c-agent-with-axllm-mt59owto'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/c-agent-with-axllm-mt59owto/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.