From ctx
Records coding conventions in CONVENTIONS.md to standardize repeated patterns like naming, formatting, or structure after 2-3 uses.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:ctx-add-conventionThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Record a coding convention in CONVENTIONS.md.
Record a coding convention in CONVENTIONS.md.
/ctx-add-decision)/ctx-add-learning)Conventions are simpler than decisions or learnings. You need:
If the user provides only a description, infer the section from the topic. Check existing sections in CONVENTIONS.md first to place it correctly: don't create a new section if an existing one fits.
If the convention overlaps with an existing one, mention it: "There's already a naming convention for functions. Want me to add this alongside it or update the existing one?"
ctx add convention "Use kebab-case for all CLI flag names" --section "Naming"
ctx add convention "Use cmd.Printf/cmd.Println for CLI output, never fmt.Printf/fmt.Println" --section "Output"
ctx add convention "Colocate test files with implementation (*_test.go next to *.go)" --section "Testing"
If no --section is provided, the convention is appended to the end
of the file. Prefer specifying a section for organization.
Before recording, verify:
Confirm the convention was added.
npx claudepluginhub activememory/ctx --plugin ctxGuides creation of .claude/rules/ files for path-scoped project conventions using TDD workflow: RED (test gaps), GREEN (write rule), REFACTOR (optimize). Triggers on 'add rule', 'create convention', 'scope guideline'.
Elicits, drafts, aligns, and persists team coding conventions and working agreements as versioned artifacts (convention doc and/or project rule). Use when setting up shared norms or reconciling conflicting style decisions.
Guides writing enforceable conventions, stack declarations, and context for HARNESS.md to help LLMs follow project standards and aid team onboarding.