humansys/raise/rai-cartridge-agent
Claude Code and agent skill by humansys/raise
- community
Checking that the SKILL.md file is still in the repository.
Build a Knowledge Cartridge using the local agent's own inference — no external LLM API key. Propose schema, extract nodes, and relate them via emit-work/ingest.
Install
npx vskill@latest install humansys/raise/rai-cartridge-agentSKILL.md
Cartridge Agent (key-less build)
Purpose
Build a Knowledge Cartridge with the inference of the agent already driving the CLI — no external API key. This is the community-tier counterpart of /rai-kc-build (which calls OpenRouter). The deterministic pipeline (chunking, validation, hygiene, edge materialization, embeddings) stays in raise_core; only the generative steps (propose schema, extract nodes, relate) run on the local agent via emit-work/ingest.
Mastery Levels (ShuHaRi)
- Shu: Show proposed schema + each extraction, confirm
- Ha: Propose schema, confirm once, run extraction + relate
- Ri: Propose → present schema → run extract + relate → report
Context
When to use: The cartridge-governance phase of the upgrade pipeline, or any key-less cartridge build.
When to skip: An API key is configured and batch/unattended extraction is preferred → use /rai-kc-build instead.
Inputs: A cartridge already scaffolded with a corpus and GraphNode schema (produced by /rai-corpus-curate → rai cartridge init --from-curation).
Steps
Step 1: Verify the scaffolded cartridge
| Result | Action | |
|---|---|---|
| Manifest with corpus + GraphNode schema | Continue | |
| Missing / no corpus | Stop: run /rai-corpus-curate first |
Step 2: Propose the schema (local inference — no API)
Read a sample (first ~40 lines) of each corpus doc. From the content, propose:
- 3–8 node types (e.g. requirement, guardrail, principle, decision,
component) — names in kebab-case.
- 2–6 relationship types with one-line descriptions.
- A few competency questions the cartridge should answer.
Write the extractor config and schema yourself (this replaces the OpenRouter corpus_analyzer step):
extractors/config.yaml— one spec per node type, each withtype: agent,
sources = the cartridge corpus globs, schema_ref: extractors/schemas/relationships.yaml, relationship_mode: guided.
extractors/schemas/relationships.yaml— the proposedrelationship_types.
Present the proposed schema and confirm before extracting (quality gate).
Step 3: Extract nodes (emit-work → fill → ingest)
For each .agent-work/*.work.json, read its prompt and write the JSON node list to the sibling .result.json using your own inference. Then:
Report nodes extracted (per type) and any warnings.
Step 4: Relate (second pass — one-time quality)
Fill .agent-work/relationships.result.json with {"relationships": [{source, target, type}]} over the full node inventory — link across sections/types, using only existing node ids and schema types. Then:
Step 5: Report
STOP HERE. Return your summary to the orchestrator.
Output
| Item | Destination | |
|---|---|---|
| Schema | extractors/config.yaml + extractors/schemas/relationships.yaml | |
| Instances | .raise/cartridges/{name}/instances/*.json | |
| Next | verify (rai graph build) |
Quality Checklist
- [ ] No external API key used — all generative steps via local agent
- [ ] Schema reviewed before extraction
- [ ] Extraction via emit-work/ingest (not the OpenRouter extractor)
- [ ] Relationship pass run (one-time quality for the migration)
References
- API/batch variant:
/rai-kc-build - Prereq:
/rai-corpus-curate - Engine:
raise_core/cartridges/agent_extract.py,relate.py
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/raise-cli/src/raise_cli/skills_base/rai-cartridge-agent/SKILL.md
Popularity
- Repository stars
- 71
- Repository forks
- 8
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/humansys/raise/rai-cartridge-agent)