/engineering:skill-writingfrom engineering
Guides authoring of reusable SKILL.md files, specialist-role instructions, and vendor adapters with repository house style, triggers, progressive disclosure, and validation contracts.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
references/ directory for deep detail after reading the core workflow below.scripts/ directory for repository-native automation before inventing new tooling.Use this skill for repository-native skill authoring. A Markdown file is an instruction artefact, not an autonomous agent: it becomes part of an agent only when a runner loads it into a model context, grants capabilities, and executes work. Encode reusable operational knowledge independently from any one runner, then add thin vendor adapters only where needed.
| Concept | Meaning | Canonical content |
|---|---|---|
| Agent | A specialised worker instantiated by a runner with context, tools, permissions, and an execution lifecycle | Role, responsibility boundary, capability policy, handoff contract |
| Skill | A reusable procedure or standard an agent can apply | Trigger, workflow, decision rules, checks, output contract |
| Tool | Equipment exposed by the runner | Capability requirements and safety constraints, not vendor command syntax |
| Workflow | An assignment that sequences one or more agents and skills | Routing, dependencies, reconciliation, stop conditions |
Do not label every role Markdown file an agent. State whether the artefact is a role definition, skill, project instruction file, workflow, standard, or vendor adapter.
SKILL.md under 500 lines. Keep deeper markdown references lean and split them when they become hard to load or maintain.name, description, license, allowed-tools, metadata.description the trigger: what the skill does and when to use it.references/; keep SKILL.md focused on execution logic.README.md or CHANGELOG.md.python -X utf8 scripts/<name>.py), never as a bare path.This file is the canonical Chwezi authoring standard (record: chwezi-engine-agents/docs/operations/decisions/skill-writing-canonical.md). Other engines carry a skill-writing pointer stub plus byte mirrors of the scripts they call, registered in chwezi-engine-agents/catalog/shared-assets.yaml; change the standard here, re-sync the mirrors, then run chwezi-engine-agents/scripts/render_host_files.py --check. Research-skill revisions in digital-research-engine also pass its replay gate.
Scripts that remove files quarantine rather than delete them; follow bundled-script safety.
The boolean metadata.portable and list-valued metadata.compatible_with are
this repository's local authoring contract. They do not establish conformance
to another interchange schema or prove that a host has loaded the skill.
Require unique runtime names including claude-code and codex; preserve
additional declared runtimes. Before export, inspect the destination schema
and test a representative adapter and task. Report unavailable host checks as
NOT ASSESSED. See the current audit's metadata finding.
Every reusable specialist instruction must define:
For capability-based wording, write "when repository search is available, inspect the code before answering" rather than naming a vendor command. Put runner-specific tool names, model selection, directories, and delegation syntax only in adapters.
Contract section rules (harvested from the engine copies, M10-04):
NOT ASSESSED; an unavailable check is never a pass.Fix:).Create or update a skill only if it captures:
Do not create skills for generic programming knowledge or one-off tasks.
Skill names and descriptions are discovery metadata exposed before the model chooses which full instruction body to load. Treat this metadata as a shared runtime budget across local engines and plugins:
references/.SKILL.md entrypoint per capability. Use ALIAS.md and the routing index for absorbed or renamed topics.Use one of these structures:
If the request is primarily for a specialised worker rather than a procedure, create or update a role definition and keep its reusable procedures as separate skills. One role may use several skills; one skill may be used by several roles.
Use the hierarchy appropriate to the target project:
AGENTS.md / CLAUDE.md project-wide operating and routing rules
.ai/standards/ shared model-neutral standards
.ai/agents/ model-neutral specialist roles
.ai/workflows/ model-neutral multi-step assignments
.ai/procedures/ model-neutral reusable procedures, when used
.claude/agents/ Claude-specific adapters
.agents/<skill>/SKILL.md Codex/open-agent skill adapters
.github/ Copilot-specific adapters
This repository's active skill-root SKILL.md files remain canonical unless a project explicitly adopts .ai/ as its canonical library. Never create parallel copies without naming which location owns the source of truth.
SKILL.md should contain:
Move these to references/:
Good skills tell the agent:
Bad skills just restate obvious framework syntax or dump long tutorials.
Test at least:
Use the host engine's routing threshold (usually the expected skill in the router's top three). Stop on a collision and repair the distinction. Recover from a validator or routing failure by fixing the named contract; never weaken the gate or baseline.
For discipline skills, also run the RED/GREEN/REFACTOR pressure method in discipline-skill pressure testing, and only after a RED baseline shows the gate is skipped.
Every skill in this repo should help the agent produce outputs that are:
Use world-class-engineering as the baseline when writing engineering skills.
Use this template:
---
name: skill-name
description: Use when ...
---
Guidelines:
name must match the directory name exactly.If a skill covers multiple subdomains, split references by topic so each file
has a single clear purpose (for example, one file for security gates, one for a
schema checklist, and one for a review template). Name each file after the topic
it owns, keep it loadable on its own, and link it directly from SKILL.md.
Do not reinvent common templates. The skill-composition-standards skill already
ships a reusable template library under its references/ directory, including a
threat-model-template.md for security gates, an entity-model-template.md and
normalisation-playbook.md for schema work, and a test-plan-template.md for
review and verification. Reuse those before creating a new local reference.
Do not bury important files several levels deep. Link them directly from SKILL.md.
Load universal agent and skill architecture when designing a canonical role library, vendor adapters, capability policies, or multi-agent workflows.
For attention-sensitive skills, load only the reference that governs the current authoring decision:
When the user provides books, EPUBs, PDFs, course notes, long articles, or other source files while creating or upgrading a skill:
Load and follow source distillation and copyright gate.
Never commit the source, a whole-work conversion, OCR output, page images, or a chapter-sequential substitute. Process raw material only in a temporary directory outside the repository and delete temporary conversions after use.
Treat the source files as temporary inputs. The finished skill must remain useful after those files are deleted, moved, or renamed.
Do not merely link to the source file path. Distill the practical knowledge
into self-contained references/*.md files.
Preserve operational knowledge: workflows, decision tables, checklists, failure modes, examples, quality gates, and output requirements.
Keep SKILL.md concise. Put durable depth in directly linked reference files.
Avoid copying long passages. Summarize, synthesize, and convert book knowledge into reusable execution rules.
Record bibliographic attribution, not local download paths or piracy-site metadata. Lawful access does not imply republication rights.
Add a short note in the reference file saying it is self-contained and was prepared from provided source material, so future agents do not depend on the original file.
If the source material is broad, split the result by practical topic rather than by book chapter.
Validate that every new reference is linked from SKILL.md with clear
conditions for when to load it.
When improving an existing skill:
After creating or updating a skill:
python -X utf8 skill-writing/scripts/quick_validate.py <skill-dir> (frontmatter, required sections, dual-compat markers, line limits).python -X utf8 skill-writing/scripts/contract_gate.py --skill <skill-dir> (Evidence Produced contract from validation-contract). Use --all to scan the whole repo, --bundle <path> to validate a Release Evidence Bundle, and --strict to treat warnings as errors.python -X utf8 scripts/skill_catalog_guardrails.py; any raw-source or
likely full-text finding blocks release.SKILL.md files that act like textbooks.AGENTS.md, Claude adapters, Codex adapters, and Copilot files.world-class-engineering when authoring engineering skills.skill-engine-audit (skill safety gate) before sharing high-impact or security-sensitive skills.| Artefact | Required? | Why | If absent |
|---|---|---|---|
| Reusable problem and trigger examples | yes | Establish scope and routing | Stop; a skill without a repeatable job has no stable contract |
| Neighbouring skill descriptions | yes | Prevent collisions | Search the live catalogue before drafting |
| Runner capabilities and permission boundary | yes | Define safe execution | Default to read-only and name the missing authority |
| Condition | Authoring choice | Failure avoided |
|---|---|---|
| Repeatable procedure used by multiple roles | Create or update a skill | Persona-procedure coupling |
| Specialist identity with distinct permissions and handoff | Create a role definition | Treating Markdown as an autonomous agent |
| Runner-specific metadata or commands only | Create a thin adapter | Canonical-source drift |
LICENSE.txt (opens in a new tab)references/bundled-script-safety.md (opens in a new tab)references/completion-criteria-and-handoff.md (opens in a new tab)references/context-pointer-quality.md (opens in a new tab)references/discipline-skill-pressure-testing.md (opens in a new tab)references/form-matches-failure.md (opens in a new tab)references/generation-template.md (opens in a new tab)references/invocation-ownership.md (opens in a new tab)references/leading-words-and-trigger-design.md (opens in a new tab)references/output-patterns.md (opens in a new tab)references/prompting-patterns-for-skills.md (opens in a new tab)references/skill-authoring-best-practices.md (opens in a new tab)references/source-distillation-and-copyright.md (opens in a new tab)references/two-loads-and-context-budget.md (opens in a new tab)references/universal-agent-skill-architecture.md (opens in a new tab)references/workflows.md (opens in a new tab)scripts/contract_gate.py (opens in a new tab)scripts/fix_mojibake.py (opens in a new tab)scripts/init_skill.py (opens in a new tab)scripts/package_skill.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions.Other plugins' skills for the same job