# Extend and maintain Foundry [Handbook](README.md) ยท [Authoring guides](best-practices/skills.md) ## Decide whether a new component is needed Use a new skill for a distinct repeatable task; a rule for a stable scoped convention; a profile for selective stack/domain guidance; an agent for a separate responsibility needing its own context/tool inventory; a deterministic helper for repeatable operations. Prefer updating an existing owner to adding a duplicate workflow or competing orchestrator. Never duplicate every skill in commands/. ## Add or change a skill Create .claude/skills/name/SKILL.md with verified native metadata, precise use/non-use, inputs, steps, outputs, validation and recovery. Default conversation tools/model remain subject to native permissions unless explicitly and justifiably changed. Keep primary content concise; no secrets or unreviewed dynamic shell injection. Add a source-linked page under docs/reference/skills with all guide sections and register it in docs/reference/catalog.json. Update the current skill inventory checks and doctor requirements deliberately. Add meaningful behavior tests if code/ownership/security changes, then run static/docs checks. Native inventory is a separate probe; it does not establish semantic live behavior. Review conflicting triggers and unnecessary context manually. ## Add an agent Define one responsibility, limited tools, model policy, scoped inputs, escalation and structured handoff. Do not give write/command/delegation tools merely for convenience. Create its guide/catalog entry and revalidate the inventory. Independent agreement is not proof; a reviewer without Bash cannot truthfully claim to run tests. ## Add a design option or profile The canonical questionnaire is design-options.json. Keep axes separate, explicit custom choices and relevant conditional questions. Update the helper if a new custom detail/constraint is needed, including exact-value confirmation handling. Test invalid/stale/cyclic conditions and actual failure paths; do not silently make old confirmations apply to new values. Profiles need a real use case and known actual contracts, plus commands/security/anti-patterns/validation limits. Update the profile enum where appropriate and test selection/availability in template and installed layouts. New patterns/stacks are not qualified merely by adding labels. ## Change hooks/settings/MCP Inspect the current native schema, effective inherited sources and the exact code/data scope. Keep examples inactive until a concrete need and authorization exist. External installs, credentials, paid services and global changes require approval; never execute an upstream installer because a README told you to. Test failure, timeout, disabled behavior and rollback in isolation. Keep ownership and existing user settings intact. ## Documentation and visual assets Update the handbook/decision guide when names or responsibilities change. Keep docs outside startup context. The editable SVG source is generated by scripts/render_structure.py; the PNG is an OS-rendered preview, not a screenshot of a running model. Render/inspect it after layout changes. Doc examples are synthetic; use the actual checker and stable LF schema bytes for pins. Docs checks are offline and never activate native examples. ## Updates and reviews Use a branch, preserve product decisions and inspect diffs. The optional installer refuses edited managed files; no force overwrite exists. Run relevant checks and bounded independent review, update reports with actual evidence/skipped checks, and keep framework maintenance state separate from product state. No automatic public release, global update or production-readiness claim follows a successful docs check. On macOS, regenerate the full-size preview after editing the SVG generator: ```sh python3 scripts/render_structure.py sips -s format png docs/assets/project-structure.svg --out docs/assets/project-structure.png python3 scripts/check_docs.py ``` The checker compares PNG dimensions with the SVG and allows only the generated SVG element/attribute vocabulary, excluding CSS URL loading and animation. This is a check for this controlled asset, not a general-purpose SVG sanitizer. Other platforms need an explicitly verified renderer before preview portability is claimed. For skill changes, follow [the official-guidance-based authoring standard](best-practices/skills.md) and update input contracts/examples in SKILL.md, its manual and docs/reference/catalog.json together. Preserve direct procedures and semantic evaluation scenarios; do not claim new live qualification from source checks.