$npx -y skills add devnomad-byte/cosmosmith --skill cosmosmith-project-rulesGenerate or update project instruction files for Cosmosmith-governed projects. Use when the user wants AGENTS.md, CLAUDE.md, Cursor rules, Copilot instructions, OpenCode, Trae, or other editor/agent rules created from Cosmosmith conventions, or when they ask how agents should loa
| 1 | # Cosmosmith Project Rules |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | Install Cosmosmith project rules into the user's repository without forcing every editor to use the same file. |
| 6 | |
| 7 | ## Workflow |
| 8 | |
| 9 | 1. Ask which rule surfaces the user wants only if it is not clear. Default to `AGENTS.md` only. |
| 10 | 2. If `AGENTS.md` is requested, create or update it from the Cosmosmith generated-project template. |
| 11 | 3. If `CLAUDE.md` is requested, create a small adapter that points to `AGENTS.md` as canonical. |
| 12 | 4. If Cursor is requested, create `.cursor/rules/cosmosmith.mdc` as an adapter to `AGENTS.md`. |
| 13 | 5. If GitHub Copilot is requested, create `.github/copilot-instructions.md` as an adapter to `AGENTS.md`. |
| 14 | 6. If OpenCode is requested, create `.opencode/AGENTS.md` as an adapter to `AGENTS.md`. |
| 15 | 7. If Trae is requested, create `.trae/rules/cosmosmith.md` as an adapter to `AGENTS.md`. |
| 16 | 8. Keep adapters short and do not duplicate the whole constitution unless the tool requires it. |
| 17 | 9. Update `task.md` with any follow-up tasks. |
| 18 | |
| 19 | ## Rules |
| 20 | |
| 21 | - `AGENTS.md` is canonical for cross-agent project behavior. |
| 22 | - Tool-specific files are adapters. |
| 23 | - Supported adapters include `CLAUDE.md`, `.cursor/rules/cosmosmith.mdc`, `.github/copilot-instructions.md`, `.opencode/AGENTS.md`, and `.trae/rules/cosmosmith.md`. |
| 24 | - If an adapter conflicts with `AGENTS.md`, follow `AGENTS.md` and update the adapter. |
| 25 | - Do not overwrite substantial existing project rules without preserving user-specific guidance. |
| 26 | |
| 27 | ## Completion |
| 28 | |
| 29 | Stop when requested rule files exist, identify their canonical source, and record any follow-up tasks. |