---
name: skill-architect
description: Create, refactor, or lint production Agent Skills (SKILL.md) using 3-tier progressive disclosure, explicit trigger/negative boundaries, and zero-token black-box scripts. Use when the user asks to build a new skill, convert a bloated CLAUDE.md or AGENTS.md into skills, fix a skill that never triggers, or validate a skills directory. Do NOT use for general feature coding, PR security audits, repo architecture mapping, or debugging runtime stack traces.
---
# Skill Architect
Build and audit high-recall, low-token Agent Skills that work identically across **Claude Code**, **OpenAI Codex**, and **Cursor**.
## Workflow
1. **Audit First (if upgrading existing skills or `CLAUDE.md`)**:
- Run the bundled deterministic linter as a trusted black-box CLI first:
```bash
python3 scripts/skill_lint.py <skills_directory>
```
- Trust its JSON/text output directly; do not re-read `scripts/skill_lint.py` source code.
2. **Design Using 3-Tier Progressive Disclosure**:
- **Tier 1 (YAML Header, `<= 150` tokens)**: Write `description` as router code using the 3-part formula:
1. Concrete imperative action (*what it runs or produces*).
2. Explicit trigger clause (*`Use when the user asks to...`* with exact developer phrases).
3. Explicit negative boundary (*`Do NOT use for...`* listing adjacent workflows).
- **Tier 2 (`SKILL.md` Body, `< 500` lines, ideally `20–80` lines)**: Concise numbered steps only.
- **Tier 3 (`scripts/` and `references/`)**:
- Move deterministic checks (AST scans, linters, env collectors, format checks) into runnable scripts inside `scripts/` (0 prompt tokens at rest).
- Add an explicit **Trusted Black-Box Rule** in `SKILL.md` telling the agent to execute the script and trust its output instead of reading script source or re-grepping the repo.
- Move heavy lookup tables, checklists, and examples into `references/` with conditional read instructions (*"Read `references/foo.md` only when..."*).
3. **Consult Rubric Only If Designing Complex Multi-File Skills**:
- Read `references/skill_rubric.md` only if you need templates for negative boundaries, script wrappers, or multi-tool symlinks.
4. **Validate & Wire Cross-Tool Symlink**:
- Re-run `python3 scripts/skill_lint.py <skills_directory>` and verify `0` failures.
- If setting up a git repo for both Codex and Claude Code, store canonical skills in `.agents/skills/` and symlink `.claude/skills -> ../.agents/skills`.
— ‹guest · 2026-12-02› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.