Repository navigation
Skills Catalog
Canonical source:
skills/README.md— this page is rendered from it on every publish; edit the source.
Skills are god-mode operational runbooks for AI agents (and humans) working on ClawAI. This README explains the skill file format, how skills relate to
rules/, agents, and context docs, and — most importantly — how the deterministic context resolver surfaces skills. Read this once, then let the resolver route you.
Before opening any skill by hand, run the knowledge context resolver. It is a deterministic (no-AI) lexical/structural tool that classifies your task and hands back the exact rules, skills, validation lane, and pitfalls that apply:
npm run knowledge:context -- --task="add a new RabbitMQ event consumer to audit-service"
npm run affected:listSee ./resolve-task-context.md for the full flag
list and workflow. Every skill's Read first section points back to it.
npm run knowledge:context (backed by tools/knowledge/context.mjs +
classify-task.mjs):
- Builds repo manifests of services, packages, events, and routes.
-
Classifies the task into a curated pack (e.g.
authentication-security,rabbitmq-event,database-migration,chat-streaming,ai-provider-connector,model-routing,frontend-feature,workspace-connector,infrastructure,documentation). Each pack carries reviewers, validation lanes, and known pitfalls. -
Ranks governance docs under both
rules/andskills/by task-term overlap across their full markdown text, emitting the top ~8. - Emits a compact ~6k-token linked context bundle.
Consequence: keyword-rich frontmatter (task_keywords, applies_to) and
body text are exactly what make a skill surface for a task. Write skills with
the trigger terms an agent would actually type.
Every skill file begins with this frontmatter block:
| Field | Meaning |
|---|---|
name |
kebab-name matching the filename without .md
|
summary |
one-line description |
task_keywords |
trigger terms the resolver ranks against |
applies_to |
workspaces or layers the skill covers |
required_rules |
rule basenames (without .md) that constrain the work |
required_context |
context doc basenames to read |
affected_workspaces |
services/packages likely touched |
required_tests |
test types the work needs |
required_docs |
docs to update on completion |
validation_lane |
the exact command lane to gate the change |
After the frontmatter, every skill has these 12 sections, in order:
- When to use
- When NOT to use
- Read first
- Repository discovery steps
- Tests-first plan
- Implementation steps
- Security considerations
- Failure modes
- Validation commands
- Documentation updates
- Definition of done
Navigation/read-only skills keep all 12 sections; their "Tests-first plan" states how to confirm the trace, and their "Validation commands" are the grep/knowledge commands that verify the finding.
-
rules/are non-negotiable constraints (see../rules/00-master-rules.md). Skills are the how-to; they cite the rules that bind them. A skill never overrides a rule. - Agents — specialized reviewer/author agents invoke skills to do work the right way, then report conclusions.
-
Context docs —
docs/(esp.../docs/15-ai-context/and../docs/03-architecture/) are the ground truth skills point you to. Skills route; docs explain.
| Skill | Purpose |
|---|---|
resolve-task-context.md |
Step 1 of every task — run the resolver, scope affected folders |
navigate-codebase.md |
Find files/flows; grep recipes for endpoints/enums/events |
trace-request-end-to-end.md |
Trace an HTTP request FE repository → nginx → controller → service → repo |
trace-event-end-to-end.md |
Trace a RabbitMQ event publisher → claw.events → consumer |
trace-frontend-feature.md |
Trace page.tsx → controller hook → hooks/queries → repository |
find-canonical-owner.md |
Which service/package owns a concept; where a util belongs |
inspect-affected-workspaces.md |
affected:list + variants; per-touched-folder gate scoping |
-
add-a-shared-package-to-a-service.md—@claw/shared-*into a service:package.json+ BOTH Dockerfiles + CI, and the stale-host-distERR_MODULE_NOT_FOUNDcrash it prevents (rule 14 §6)
-
run-the-qa-team.md— every QA hat over one change: the API lane, the RBAC/plan lane, the browser lane, the ≥3-widths-per-platform responsive lane, and the evidence each one has to produce (rule 49); its companionverify-a-batch-live.mdcarries the stale-container traps
The original numbered runbooks remain in force and are cross-linked from the navigation skills above:
00-index.md01-codebase-navigation.md02-service-scaffold.md03-feature-scaffold.md04-debug-toolkit.md05-qa-toolkit.md06-docker-toolkit.md07-database-toolkit.md08-event-bus-toolkit.md09-refactor-toolkit.md
reconcile-billing-state.mddebug-a-stuck-scheduled-job.mdadd-a-payment-gateway-flow.mdmeter-a-paid-provider-call.mddeploy-payg-credit.md
When you discover a technique, shortcut, or trigger term the resolver should
rank on, add it to the relevant skill's task_keywords and body. Stale skills
route agents wrong.
ClawAI Wiki · source-controlled under wiki/ · generated/mirrored from the current repository knowledge layer.
ClawAI Wiki
Product
- Product-Vision
- Flagship-Features
- Business-Overview
- Requirements-Register
- Drift-Log
- Runtime-Managed-Connector-Providers
- Threads
- ADR-Index
Architecture
- System-at-a-Glance
- Architecture-Map
- System-Architecture
- Message-Flow
- End-to-End-Data-Flow
- Routing-Engine
- Event-Bus
- Security-Architecture
Platform
- Backend-Services
- Frontend-Architecture
- Shared-Packages
- Database-Reference
- API-Reference
- Provider-Catalog
- Memory-and-Context-Architecture
- File-Support-Architecture
- Research-and-Web-Crawling
Runtime & Ops
- Docker-Guide
- Nginx-Reference
- CI-CD-Pipeline
- Logging-and-Observability
- Operational-Runbooks
- Troubleshooting
Quality
Engineering OS
- AI-Native-Engineering-OS
- Generated-Manifests
- Rules-Catalog
- Skills-Catalog
- Context-Layer
- Engineering-Memory
- Tooling-and-Automation
- Scripts-and-Operations
- ESLint-and-Architecture-Enforcement
- Extended-Work-Skills
Agents
Reference