v0.2.2 — Rules bind the AI agent at runtime
Changed
-
`/speckit.tekimax-security.install-rules` now writes to three targets instead of one, so the rules bind the AI agent at runtime instead of sitting in a docs file the agent might ignore:
-
`docs/DEVELOPMENT-RULES.md` — full human reference (unchanged behavior; backs up existing files with a timestamp)
-
`.specify/memory/constitution.md` — spec-kit constitution, read by every spec-kit-aware agent at session start. Appends a `## Development Rules` section with the eight key principles and a pointer to the full doc.
-
Agent-specific context file — auto-detected from `.specify/init-options.json`:
Agent File claude `CLAUDE.md` copilot `.github/copilot-instructions.md` gemini `GEMINI.md` cursor / cursor-agent `.cursorrules` windsurf `.windsurfrules` opencode, codex, kiro-cli, and everything else `AGENTS.md`
-
-
Idempotent by default. Re-running the command skips append targets that already contain the rules section. Pass `--force` to replace.
-
New helper script `scripts/bash/install-rules.sh` does the three-target writes atomically and prints a summary box showing what was created, appended, or skipped.
Added
- Three new tests under `tests/install-rules/`:
- `writes-three-targets.sh` — verifies all three files are written for a claude init
- `agent-fallback.sh` — verifies unknown agents fall back to AGENTS.md
- `idempotent-append.sh` — verifies re-running doesn't duplicate the rules section
Test suite is now 8/8 passing (was 5).
Install
```bash
specify extension add --dev /path/to/speckit-security
In your AI agent:
/speckit.tekimax-security.install-rules
```
The three files appear in your project. The AI agent picks up the constitution and context updates on the next session.