feat-setup
Use when the user wants the project instructions file generated or updated from the detected stack and conventions — 'gerar o arquivo de instruções do projeto', 'criar convenções do projeto', 'setup g
SKILL.mdplugins/pwdev-feat/skills/feat-setup/SKILL.md
GitHubGenerate the project instructions file
Which files each runtime reads, and the write rules, are in references/project-files.md —
read it first. The canonical content comes from templates/AGENTS.template.md.
Procedure
- Language — resolve
lang(references/language.md). - Check existing — for each instructions file named in
references/project-files.md, report whether it exists and show its first 20 lines. Existing content → ask: update (merge sections), replace, or skip. Never overwrite silently. - Gather context —
.planning/feat/codebase.mdand.planning/feat/context/*.mdwhen present (suggestfeat-mapfirst when absent), otherwise a quick read-onlypython3 "<plugin-root>/scripts/feat_map.py" --repo-root .. - Ask (1 round max) only what cannot be detected: what the project is (1 sentence) and any specific rules ("use defaults" is fine).
- Write the canonical file from the template with real values — commands from
context/testing.md, conventions fromcontext/conventions.md. Then make Claude Code load the same rules asreferences/project-files.mdprescribes (a one-line import file when it does not exist yet). - Present the sections written (Identity, Stack, Architecture, Conventions, Commands,
Quality, Security, Golden Rules), the files created or updated, and next:
feat-feature "description".
Prohibitions
- Never overwrite an existing instructions file without asking.
- Never invent conventions — detect them or ask.
Language: resolve lang per references/language.md before any human-facing output. Safety: never read or expose .env* (except .env.example/.template/.sample), keys, certificates or credentials — references/safety.md. Paths references/, scripts/, templates/, schemas/ are relative to the plugin root (references/runtime.md).