dot_claude/skills/ai-context/SKILL.md
Full conventions for the ai/ persistent context system — file roles, index discipline, frontmatter spec, consolidation rules, and DECISIONS.md compaction. Use when operating on ai/ files or enforcing conventions mid-session.
npx skillsauth add nijaru/dotfiles ai-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference for operating within an established ai/ directory. For initialization or audit/migration, use the setup-ai skill instead.
ai/
├── README.md # Index: pointers only, ~150 chars/entry, no content
├── STATUS.md # Phase, focus, blockers — updated every session
├── DESIGN.md # Current architecture — answers "what is it?"
├── DECISIONS.md # Why decisions were made — Principles + Log sections
├── PLAN.md # Active plan or sprint index (managed by /sprint)
├── research/ # Investigation docs
├── design/ # Detailed design docs
├── review/ # Review outputs
├── sprints/ # Sprint detail files (NN-name.md) — created by /sprint
└── tmp/ # Scratch (gitignored)
| File | Purpose | Update Rule |
| :------------- | :---------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| README.md | Index only — pointers, ~150 chars/entry, no content | Immediately when any topic file is added/changed/deleted |
| STATUS.md | Phase, active focus, blockers | Every session; on focus shifts and blockers |
| DESIGN.md | Current architecture — answers "what is it?" | When architecture changes |
| DECISIONS.md | Why it is that way. Principles (distilled) + Log (recent ~20 entries) | Append to Log; compact when Log > ~20 entries |
| PLAN.md | Active plan. Flat doc or sprint index with ai/sprints/NN-name.md files | Update as sprints progress; extract outcomes to DECISIONS/DESIGN then replace |
README.md is pointers only — format: - [Title](path) — one-line hook
README.md immediately. Index must stay synchronized.ai/.ai/ is hints, not truth — verify against code when it matters.All files in research/, design/, review/ must start with:
---
date: YYYY-MM-DD
summary: one-line description
status: active | resolved | stale
---
Topic files in subdirs only get README.md entries if actively referenced by current work.
When Log section exceeds ~20 entries:
Run /setup-ai to do this automatically.
status: resolved = candidate for deletion.README.md reference → verify relevance, delete if stale.ai/.research/ → DESIGN.md → /sprint → PLAN.md → code → review/
Format: Tables/lists over prose. Answer first, evidence second.
AGENTS.md is primary in own repos. Symlink at repo root: ln -s AGENTS.md CLAUDE.md. OSS/external repos often use ./CLAUDE.md — follow whatever convention is present.
Keeping ai/ and .tasks/ local (not committed):
echo 'ai/' >> .git/info/exclude
echo '.tasks/' >> .git/info/exclude
→ git-local-exclude skill for details.
development
Use after completing a bug fix, feature, refactor, or tk task when the first implementation taught enough context to replace it with a simpler, cleaner, or more coherent version before finalizing.
development
Use when writing, migrating, or reviewing Zig code across recent stable versions (0.14-0.16), especially to correct stale syntax or stdlib, build.zig, allocator, formatting, or runtime API knowledge.
documentation
Use when reviewing or revising text (prose, docs, commits) to remove AI patterns and improve voice/clarity.
content-media
Use when fetching X/Twitter post content by URL, or searching for recent X posts.