Ctxinit — Security skill for Claude Code
Claude Code skill that scaffolds a single-source context/ knowledge hub — engineering rules, security law, component architecture, docs, plans, ADRs, and a tech-debt registry — then wires CLAUDE.md, A.
How to install Ctxinit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open VexloCa/ctxinit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ctxinit does
Claude Code skill that scaffolds a single-source context/ knowledge hub — engineering rules, security law, component architecture, docs, plans, ADRs, and a tech-debt registry — then wires CLAUDE.md, AGENTS.md, and .cursor rules as thin pointers into it, so Claude Code, Codex, and Cursor all read one canonical set of rules.
Alternatives in Security
- Skill Audit — Audit codebases for quality, consistency, and broken patterns — use for pre-release or tech debt review 2.8k ★
- Synk Skill Security Scanner — Agent Trust Hub 1.9k ★
- Tech Debt Skill — Claude Code skill that produces a thorough, file-cited tech debt audit of an entire codebase 590 ★
README
ctxinit
Initializes a project's engineering foundation: a single-source **`context/` knowledge hub** (binding rules, security law, component-architecture law, docs, plans, an ADR decision log, a technical-debt registry, a repo map) plus thin agent entry-point files (`CLAUDE.md`, `AGENTS.md`, `.cursor/rules/*.mdc`) that **reference** the hub instead of copying it. It also owns that decision log going forward — recording, querying, and superseding ADRs through a deterministic, dependency- free CLI — so the log never drifts and no decision silently contradicts an earlier one.
Modeled on a knowledge-hub design proven on a real production codebase, genericized for any project.
Why
Most projects end up with the same rules explained three different ways: once in `CLAUDE.md`, once in `.cursorrules`, once in someone's head. They drift. ctxinit sets up **one canonical source** (`context/rules/`) and makes every AI coding tool point at it instead of holding its own copy — so editing a rule once updates it everywhere, for every agent, forever.
What it works with
The `context/` hub itself is plain markdown — no tool lock-in. ctxinit generates a dedicated, correctly-shaped entry point for each of the three major AI coding tools, all pointing at the same rules:
| Tool | Entry point ctxinit generates | How that tool uses it |
|---|---|---|
| Claude Code | CLAUDE.md |
Auto-loaded every session; @context/rules/*.md imports pull the rules into context. |
Codex (and other AGENTS.md readers) |
AGENTS.md |
Read at session start; references context/rules/ by path. |
| Cursor | .cursor/rules/context.mdc |
A thin stub (alwaysApply: true) whose only job is to point at context/rules/ — Cursor needs a file to glob, so this exists to satisfy that, not to duplicate content. |
Running `ctxinit`/`ctxinit --sync` *as a slash command* is native to Claude Code (it's a Claude Code Skill — see below). In Codex or Cursor you can still get the same resu
Related Skills
Gaia Debt
Fix the tech-debt backlog, a single issue or a recommended related batch, highest severity then oldest first,
Audit Knowledge
Audit Claude's knowledge of the project's tech stack — identify gaps before development
Hub Audit
Monthly adversarial self-audit of the hub — a fresh, context-free worker hunts for drift, stale rules, and sel
Universal Agent Skills
The world's most comprehensive, unified library of 279 production AI agent skills — featuring Garry Tan's GSta
Coherence Audit
Read-only audit of semantic drift between ADRs/backlog and the code they describe
Security Compliance
AI agent skills for Israeli privacy law, GDPR, and regulatory compliance
Related Agents
Shep Use Case Creator
Scaffolds a new application-layer use case with TDD (RED test file first, then minimal GREEN implementation),
Spgr Agent Architect
Produces two or more genuinely distinct architecture options for human selection, then writes the full downstr
Sub-Agent Tech Debt Finder & Fixer Command
A two-phase command that first identifies technical debt across your codebase, presents findings for review, t