A practical configuration kit for Claude Code, Codex, and other coding agents.
$ npx -y skills add AnastasiyaW/codex-claude-code-config --agent claude-code
A practical configuration kit for Claude Code, Codex, and other coding agents. It contains architectural principles, enforcement hooks, skills, drop-in rules, starter templates, and dynamic-workflow commands. Drop the relevant parts into a project so the agent starts from verified working patterns instead of rediscovering them every session.
This is not a collection of tips. It is a system that teaches your agent how to work - when to use one agent vs many, how to verify its own output, how to manage context across long sessions, how to not get poisoned by malicious packages.
Write-ups of the incidents that produced a rule or a hook here. Each states what was measured, what is inference, and what the fix does not cover.
| Starting from what you remember | Why a brand-new project arrives years out of date, why an invented package name is now a security problem rather than a 404, and where manifest and install-time checks have to sit to catch either. Ships as dependency-currency-guard.py + dependency-provenance-guard.py. |
| Why an agent circles instead of acting | Two agents, identical rules, different gate shapes. Describing a fix instead of applying it turned out to be the only move with no gate on it. |
| Gates that cannot bootstrap themselves | A check that only arms once the thing it checks for already exists will never arm. The failure looks exactly like compliance. |
| Nine skills, one skeleton, and nobody reaching for them | Nine architecture skills existed and one was reachable — the one arguing for less code. How a one-sided advisory becomes a ratchet toward monoliths, and why filing knowledge by source book makes it unreachable. |
| The form was available, so it was taken for the content | One failure shape in six materials — including three times inside the tool built to catch it. What formal verification, pytest, ESLint and mutation testing each already answer, and why "empty" has to be its own outcome. |
| A launch is a promise to look at it | A job that died in its first second looks exactly like one running quietly, and "is it running" is three independent questions of which liveness is only the first. 2,958 launches measured, 42 never checked at all. Ships as hooks/launch-watch-guard.py. |
| The deferral moves to whichever form is not guarded | Who has already built "keep going until it is done", what it cost when it looped, and why 27 of 51 open tickets here carry the same one of five legitimate reasons. Ships as the today's-tickets gate in hooks/handoff-closure-audit-guard.py. |
| A passing test is not a release | An unavailable signer, VM, or account should block only its own stage, not erase proof of an unchanged parent. Introduces VERIFIED / SEALED / BLOCKED / SUPERSEDED, a minimal stage ledger, and the boundary where the ledger would just become bureaucracy. Ships as proof-verify + hooks/plan-gate.py. |
| A save log is not a retention guarantee | Why a handler return or message journal cannot prove photo/document preservation; defines the live read-after-write, cleanup, and restart receipt that must exist before destructive cleanup. |
| Runtime wiring and hook lifecycle | Where request intake, safety guards, verification, compaction, and close-out belong; how continuity stays durable without putting archive/index work on every prompt. |
Three paths depending on what you need:
claude plugin install https://github.com/AnastasiyaW/claude-code-config
Then in your Claude Code chat:
Read AGENTS.md and pick the principles, hooks, and skills that match my project.
git clone https://github.com/AnastasiyaW/claude-code-config ~/claude-code-config
# Copy the always-on safety hooks to your global config
python ~/claude-code-config/scripts/install_hooks.py --global
# Claude Code: copy a selected skill directory, not its parent category
mkdir -p ~/.claude/skills
cp -r ~/claude-code-config/skills/ai-ml/ml-research-lab ~/.claude/skills/
# Codex desktop, its shared ~/.agents root, and Claude Code: sync public skills
# with independent backups for changed local copies. Target-only skills remain intact.
python ~/claude-code-config/scripts/sync_skills_to_codex.py --apply --also-claude --also-agents
The canonical tracked checkout's hooks/ directory stores the global hook scripts;
~/.claude/settings.json and ~/.codex/hooks.json register that exact source.
The installer must not create a second active ~/.claude/hooks/ tree; it merges
safe defaults into the existing manifests and keeps backups before changes.
cd /your/project
git clone https://github.com/AnastasiyaW/claude-code-config .claude-config
python .claude-config/scripts/install_hooks.py --local
cp -r .claude-config/skills .claude/skills
This keeps everything under .claude/ in your repo, nothing global.
| Project type | Minimum viable set |
|---|---|
| Any project | 5 safety hooks (destructive-command, secret-leak, git-destructive, git-auto-backup, session-drift-validator) + Principles 09 (Supply Chain), 10 (Agent Security), 11 (Documentation Integrity) |
| Web app | above + frontend-design skill + Principles 04 (Deterministic Orchestration), 05 (Structured Reasoning) |
| ML / data pipeline | above + flux2-*, diffusion-engineering, vlm-segmentation skills + Principles 03 (Autoresearch), 12 (Low-Signal Training) |
| Multi-agent / parallel sessions | above + mclaude + Principles 01 (Harness), 06 (Multi-Agent), 18 (Multi-Session Coordination), 19 (Inter-Agent Communication) |
| Library / package | above + Principles 08 (Skills Best Practices), 17 (DBS Skill Creation) |
| More than one CLI agent (Claude + Gemini / Codex) | above + rules/cross-harness-agents-md.md (one AGENTS.md per project, no symlinks) + gemini-delegate skill |
See AGENTS.md for the procedure an agent follows after install, HOW-IT-WORKS.md for the mechanics of each layer, and docs/runtime-wiring.md for the live verification contract.
Moved the config to a new machine or account and most skills stopped being
offered? Nothing raises an error when that happens — see
docs/skill-tree-recovery.md and run
python scripts/recover_skill_trees.py --report.
Architectural Principles - each one prevents a specific failure mode observed in real agent workflows:
claude-code-config is a Claude Code plugin with 58 hand-picked skills, indexed on Flowy in the AI & Agents category. Install it with the command on its page. It includes agent-harness-design, agents-best-practices, diffusion-engineering. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it