Imported from zhongjis/agent-skills (
AGENTS.md). Install upstream withnpx skills add zhongjis/agent-skills. Copyright stays with the author.
DOX framework
- DOX is highly performant AGENTS.md hierarchy installed here
- Agent must follow DOX instructions across any edits
Core Contract
- AGENTS.md files are binding work contracts for their subtrees
- Work products, source materials, instructions, records, assets, and durable docs must stay understandable from the nearest applicable AGENTS.md plus every parent AGENTS.md above it
Read Before Editing
- Read the root AGENTS.md
- Identify every file or folder you expect to touch
- Walk from the repository root to each target path
- Read every AGENTS.md found along each route
- If a parent AGENTS.md lists a child AGENTS.md whose scope contains the path, read that child and continue from there
- Use the nearest AGENTS.md as the local contract and parent docs for repo-wide rules
- If docs conflict, the closer doc controls local work details, but no child doc may weaken DOX
Do not rely on memory. Re-read the applicable DOX chain in the current session before editing.
Update After Editing
Every meaningful change requires a DOX pass before the task is done.
Update the closest owning AGENTS.md when a change affects:
- purpose, scope, ownership, or responsibilities
- durable structure, contracts, workflows, or operating rules
- required inputs, outputs, permissions, constraints, side effects, or artifacts
- user preferences about behavior, communication, process, organization, or quality
- AGENTS.md creation, deletion, move, rename, or index contents
Update parent docs when parent-level structure, ownership, workflow, or child index changes. Update child docs when parent changes alter local rules. Remove stale or contradictory text immediately. Small edits that do not change behavior or contracts may leave docs unchanged, but the DOX pass still must happen.
Hierarchy
- Root AGENTS.md is the DOX rail: project-wide instructions, global preferences, durable workflow rules, and the top-level Child DOX Index
- Child AGENTS.md files own domain-specific instructions and their own Child DOX Index
- Each parent explains what its direct children cover and what stays owned by the parent
- The closer a doc is to the work, the more specific and practical it must be
Child Doc Shape
- Create a child AGENTS.md when a folder becomes a durable boundary with its own purpose, rules, responsibilities, workflow, materials, or quality standards
- Work Guidance must reflect the current standards of the project or user instructions; if there are no specific standards or instructions yet, leave it empty
- Verification must reflect an existing check; if no verification framework exists yet, leave it empty and update it when one exists
Default section order:
- Purpose
- Ownership
- Local Contracts
- Work Guidance
- Verification
- Child DOX Index
Style
- Keep docs concise, current, and operational
- Document stable contracts, not diary entries
- Put broad rules in parent docs and concrete details in child docs
- Prefer direct bullets with explicit names
- Do not duplicate rules across many files unless each scope needs a local version
- Delete stale notes instead of explaining history
- Trim obvious statements, repeated rules, misplaced detail, and warnings for risks that no longer exist
Closeout
- Re-check changed paths against the DOX chain
- Update nearest owning docs and any affected parents or children
- Refresh every affected Child DOX Index
- Remove stale or contradictory text
- Run existing verification when relevant
- Report any docs intentionally left unchanged and why
User Preferences
When the user requests a durable behavior change, record it here or in the relevant child AGENTS.md
- huashu-nuwa marketing media purged (repo-size): The vendored
huashu-nuwaskill has its non-functional marketing media (promo/,assets/hero.gif,cover-distill-minds.png,advisory-board.png,6-agents-parallel.png,wechat-qrcode.jpg— ~31 MB) intentionally removed from the working tree and purged from git history to shrink the repo. This is a deliberate deviation from the whole-dir/source-fidelity contract; upstream reorg was requested in alchaincyf/nuwa-skill#74 (and alchaincyf/huashu-design#51). Do NOT re-add these viaskills update huashu-nuwa— a refresh reconciles the full upstream tree and will re-bloat the repo. Re-vendor cleanly only after upstream moves the skill under askills/subdir with marketing outside it.huashu-designmedia is functional (BGM/SFX) and was left intact.
Skill catalog
- Layout: authored/adapted skills live in category subdirectories under root
skills/(e.g.skills/engineering/<name>); vendored common skills live in.agents/skills/; relative.agents/skills/<name>symlinks may project centrally excluded root skills from../../skills/<category>/<name>; physical harness skills live in<agent-folder>/skills/; absent harness folders yield empty groups - Profile axis:
profiles.nixat repo root lists skills by profile (personal,work); unlisted skills aregeneral - Global exclusion:
skill-selection.nix.excluderemoves named root skills from everylib.skillsForresult; every name must exist as a leaf under rootskills/(in any category subdirectory) - Authored vs vendored: root
skills/leaves without lock entries are authored/adapted;.agents/skills/directories with lock entries are vendored; matching relative symlinks named byskill-selection.nix.excludeare project-local projections;adaptedFromis informational lineage - Provenance drift:
.agents/skills/directory without lock, root leaf with lock, orphan lock, conflictingupstream/lock source, or a projection not matching../../skills/<category>/<name>is drift; singularupstream, when present, must agree with lock source - Logical routing:
skill-harnesses.nixsparsely maps globally selectable root skill names to supported harnesses; unlisted selected root skills are logical common - Precedence/collisions: physical harness skills override logical common at final selection; same-layer root/vendored or routed/physical duplicates are invalid
- Whole-dir/source fidelity: preserve complete skill directories and instructional content; only repository-owned provenance metadata may differ; reject unsuitable sources rather than rewriting them
- Scoped CLI projection: add and refresh exactly one skill for one harness with
--copy; never use wildcard selectors or broadskills update - Bootstrap packs:
packs/catalogs are ordered Skills CLI source/name sets with optional ordered pack dependencies; they are separate from profile selection and never prune existing skills - Pack runner: root
packs.shresolves dependencies first, validates the full closure before invoking Skills CLI, requires full HTTPS sources, groups calls by source, defaults omitted--agentto Skills CLIuniversal(.agents/skills/), and leavesskills-lock.jsonunder Skills CLI ownership; the flake exposes it as#packsand the default app
Child DOX Index
lib/AGENTS.md— Nix selection API (lib.skillsFor,exclude-skills.nix,select-skills.nix,default.nix)packs/AGENTS.md— bootstrap pack manifests, ordering, validation, and lock-ownership contractstests/AGENTS.md— repository verification (selector.nix,packs.sh,skills-cli.sh)skills/AGENTS.md— authored/adapted skill ownership, routing, and whole-tree contracts- Root-owned files:
README.md,flake.nix,skill-selection.nix,packs.sh,.gitignore, and any other root-level project documentation or runner.
