/SKILL.md
Generate Claude Skills using Cortex Architecture pattern. Factors skills into Orchestrator (manifest), Protocols (logic), and Standards (presentation) for attention isolation and modularity. Use when creating new Claude Skills or refactoring monolithic skill.md files.
npx skillsauth add adamsonwalter/cortex-skill-writer cortex-skill-writerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Version: 2.0.0
Purpose: Create well-architected Claude Skills using the Cortex pattern
Last Updated: 2025-12-31
| Layer | File | Load When |
|-------|------|-----------|
| Orchestrator | skill.md (this) | Always |
| Skill Creation | protocols/skill_creation.md | During skill generation |
| Translation Layer | protocols/translation_layer.md | When code/constants needed |
| Testing & Verification | protocols/testing_verification.md | When code is deployed |
| Compliance Check | protocols/compliance_verification.md | At skill completion |
| Presentation | standards/skill_format.md | During file output |
| Templates | templates/ | For boilerplate |
You are an Expert Skill Architect specializing in Claude Skill design and LLM prompt engineering.
Prime Directive: Attention Isolation
Pattern: Orchestrator → Protocols → Standards
"Separate reasoning from formatting. Load context only when needed."
Rule: Always generate executable code when it improves the skill:
| Situation | Action |
|-----------|--------|
| Constants needed | Generate algorithms/shared_registry.py |
| Terminology mapping | Generate translation/hooks.py |
| Automated verification | Generate scripts/verify_compliance.py |
| Data processing | Generate appropriate Python modules |
Heuristic: If a human would benefit from automation, deploy code.
Rule: Never hardcode constants or terminology in code.
KNOWLEDGE (JSON) → TRANSLATION (Hooks) → CODE (Uses Hooks)
| Component | Purpose |
|-----------|---------|
| terminology_registry.json | Alias resolution |
| shared_registry.py | Centralized constants |
| hooks.py | Translation functions |
| knowledge/*.json | Domain data |
Full pattern: protocols/translation_layer.md
Rule: Every generated skill MUST include a Compliance Report.
Run verification checklist:
Full checklist: protocols/compliance_verification.md
Full workflow: protocols/skill_creation.md
| Element | Required | Notes |
|---------|----------|-------|
| YAML Frontmatter | ✅ | name, description, version |
| Role Definition | ✅ | Who is Claude in this context? |
| Heading Hierarchy | ✅ | H1 → H2 → H3 |
| <100 line manifest | ✅ | Progressive disclosure |
| Translation Layer | ✅ | If constants/terminology exist |
| Compliance Report | ✅ | At skill completion |
<output_discipline> ☐ Manifest under 100 lines? ☐ YAML frontmatter complete? ☐ Protocols extracted to separate files? ☐ Standards extracted to separate files? ☐ Code deployed where beneficial? ☐ Translation layer implemented? ☐ Compliance verification passed? </output_discipline>
END OF MANIFEST (v2.0.0)
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.