claude-shared@ed2a19f · claude-admin@2f313c0 · claude-dev@c0f89baDeeper pages, one topic each, from a first skill to the internals.
What a skill is, why it saves you time, and how to make one in about five minutes: build /rewriteemail, see it work, make it yours, and decide where to keep it. Ends with when to use a skill, CLAUDE.md or an agent.
Every skill the three repos ship, with its description and how to call it, on one page per repo: claude-shared for everyone, claude-admin for administrators, claude-dev for developers. Explains why there are three repos. Generated from each SKILL.md.
The scripts the AI tools run on their own (session start, every prompt, before each shell command, at stop), which repo ships each, what each can block, and which tools run the safety guard. Generated from each repo's hooks/hooks.json.
Why hand a task to an agent (focused context, a clean main session, specialized rules that give better results) and what it costs, then every agent the three repos ship with the specialized context it brings, and how Claude Code, Codex and Antigravity run them. Generated from each agents/*.md.
What a slash command is and why skills replace them, the commands each repo ships, and everything else that is not a skill, hook or subagent: output styles, plugin manifests, instructions files and launchers.
Open the reference →How a project keeps what its AI sessions learned in docs/context/, so the next session in any harness starts informed: the files, the per-project menu, the hooks, a manual run, and slimming an oversized CLAUDE.md.
claude-skills/*~/projects/claude-skills/*setup.pygit pull is the deployment and an edit in the clone is live in Claude Code immediately.Your Unix group picks your role repo; there is nothing to configure. The split is a read-access boundary: GitLab grants read access per repo, so developers never receive the administrator material.
claude-shared main (Maintainer)/context-save), cross-project hand-off (/refocus)bin/) runaiagent-controlagent-quotacodex-handoffclaude-shared (main is protected)architect / developer / security agents never collide. Keycloak realms, clients and groups, Traefik auth and the shared proxies are administrator-owned: the developer skills end in a hand-off, not a change.gitlab.ai-servicers.com — administrator creates itclaude-shared and your role repo — granted per repoadministrators or developers — check with id -nG# 1. the container is a plain directory — never git init it mkdir -p ~/projects/claude-skills && cd ~/projects/claude-skills git clone ssh://git@gitlab.ai-servicers.com:2222/claude-skills/claude-shared.git # 2. your role repo, matching your Unix group ROLE=claude-dev # developers (administrators: ROLE=claude-admin) git clone ssh://git@gitlab.ai-servicers.com:2222/claude-skills/$ROLE.git # 3. link into every harness installed on this machine (idempotent) ~/projects/claude-skills/claude-shared/setup.py # 4. verify, then restart your AI CLI session ~/projects/claude-skills/claude-shared/setup.py --status claude plugin list # both plugins: loaded
Inside any harness, /validate-harness has the AI audit what it actually loaded and prints a working / needs-setup / unavailable table.
~/projects/claude-skills/<repo>/. That is the live path; Claude Code already sees it.claude-shared.gitpull skills (or gitpull all).setup.py only for a new repo, a new harness, or a new skill on Antigravity (it links skills one at a time).skills/<name>/SKILL.md in the right repoagents/<name>.md — rendered for Codex and Antigravity by setup.pyclaude-shared/adapters/<name>.json; no code changeclaude-shared. Manages infrastructure → claude-admin. App-side developer contract → claude-dev.gitpull runs git reset --hard origin/main. Because the working tree is the live harness, a pull replaces running config and destroys uncommitted edits. Commit before you pull.Administrator account shown; a developer account is identical with claude-dev in place of claude-admin.
~/projects/claude-skills/ # container — plain dir ├── .gitgroup # lets `gitpull all` descend ├── claude-shared/ # everyone │ ├── skills/ 58 skills │ ├── agents/ pm qa bugfixer semble-search │ ├── hooks/ guard + session hooks │ ├── output-styles/ enterprise-architect │ ├── bin/ runai agent-control … │ ├── adapters/ one JSON per harness │ ├── docs/ shared platform docs │ └── setup.py the linker ├── claude-admin/ # administrators only │ ├── skills/ 6 skills │ ├── agents/ architect developer security │ └── commands/ /cexit └── claude-dev/ # developers only ├── skills/ keycloak traefik └── agents/ architect developer security
~/.claude/ # Claude Code ├── skills/claude-shared → clone # plugin ├── skills/claude-admin → clone # plugin (or claude-dev) ├── skills/CLAUDE.md → role repo CLAUDE.md ├── docs/shared → claude-shared/docs ├── hooks/destructive-guard.sh # real copy: fallback guard ├── settings.json # guard registration (generated) └── CLAUDE.md # managed import block (generated) ~/.claude.json # MCP code-executor ~/.codex/ # Codex ├── skills/claude-shared, claude-admin → clones ├── AGENTS.md → role repo CLAUDE.md ├── config.toml # CLAUDE.md fallback, MCP, agent roles ├── hooks.json # guard (generated) └── agents/claude-skills/*.toml # agents (generated) ~/.gemini/ # Antigravity (agy) ├── GEMINI.md → role repo CLAUDE.md ├── config/skills/<skill> → one link per skill ├── config/hooks.json # guard (generated) ├── config/mcp_config.json # MCP code-executor └── agents/*.md # agents (generated)
setup.py writes outside the clone is either a symlink into it or a generated entry it owns. Generated text carries an ownership marker, and anything without that marker is left alone.~/.claude/CLAUDE.md — identity and working style — plus its managed import block (written by setup.py): the co-location philosophy, the shared directives, your role repo's skills reference, and the agent docs.~/projects/CLAUDE.md — the master index of services, tiers and the autonomous-mode boundary.CLAUDE.md. Its context-save menu points to docs/context/*, read when the task needs them.@-imports. Their global instructions file is your role repo's CLAUDE.md, which tells them on turn one to read layers 1 and 2. Codex reads a project's CLAUDE.md as a configured fallback. Antigravity has no such setting: it reaches a project's CLAUDE.md through a managed GEMINI.md pointer where one was written (setup.py --pointers), and otherwise only because its instructions tell it to.| Claude Code v2.1.322 | Codex CLI v0.165.0 | Antigravity agy v1.3.6 | |
|---|---|---|---|
| Skills | ✅ one plugin link per repo, namespaced claude-shared:qa | ✅ one link per repo | ✅ one link per skill |
| Invoke a skill | /name args | $name args | /name args |
| Global instructions | ✅ ~/.claude/CLAUDE.md + imports | ✅ ~/.codex/AGENTS.md → role CLAUDE.md | ✅ ~/.gemini/GEMINI.md → role CLAUDE.md |
Project CLAUDE.md | ✅ native | ✅ configured fallback | ⚠️ only where setup.py --pointers wrote the GEMINI.md pointer; otherwise by instruction |
| Agents | ✅ plugin agents/ | ✅ generated roles | ✅ generated |
| Safety guard | ✅ plugin + fallback copy | ✅ generated | ✅ generated |
| Other hooks | ✅ | — | — |
| MCP code-executor | ✅ | ✅ | ✅ |
| Commands, output styles | ✅ | — | — |
Versions as installed on linuxserver.lan on the date above. Gemini CLI is retired on this host; its adapter is kept. OpenCode has an adapter that has never run against a real install.
name: in one flat namespace. Two repos declaring the same name would shadow each other, so setup.py refuses to link while a duplicate exists.One script, registered in every harness. It runs before each shell command and file edit and stops destructive commands and off-limits paths before they execute. That matters because sessions here may run without per-step permission prompts.
~/.claude/hooks/ that survives a broken or half-updated pluginsetup.py overwrites the fallback copy, so hand-patching that copy does nothing| When | What |
|---|---|
| Session start | Pick up a /refocus brief; offer the recovery snapshot |
| Before a tool runs | Safety guard; recovery snapshot near the context limit; decision-card format check |
On /clear /compact /exit | Prompt to save project knowledge (/context-save) |
| Stop, compact, session end | Context-save check; close out a refocus session |
| Notification | Log it |
/usr/local/bin/mcp-code-executorsetup.py wires the same entry into ~/.claude.json, ~/.codex/config.toml and ~/.gemini/config/mcp_config.json, and migrates the older direct-launch entries it recognises. A machine without the wrapper (for example a laptop) is reported as needs setup.| Command | What it does |
|---|---|
setup.py | Link into every installed harness. Idempotent; safe to re-run. |
setup.py --status | What is linked, wired and registered for you right now |
setup.py --dry-run | Show the plan, write nothing |
setup.py --only <harness> | One harness: claude, codex, antigravity |
setup.py --prune | Remove links it made that are now stale, including an uninstalled harness's |
setup.py --pointers DIR… | Write the managed GEMINI.md pointer beside a project's CLAUDE.md for Antigravity |
/validate-harness | Inside a harness: the AI audits its own loaded context (read-only) |
runai [-claude|-codex|-anti] [project] | Start a harness in a project without permission prompts, resuming its newest session |
gitpull skills / gitpull all | Refresh the harness repos (hard reset — commit first) |
bin/ reaches a login shell's PATH through /etc/profile.d/claude-skills.sh; setup.py warns when it is missing.
CLAUDE.md. Never add a project AGENTS.md: Codex loads it instead of CLAUDE.md. The only allowed extra file is the managed GEMINI.md pointer.~/.claude/CLAUDE.md and ~/projects/CLAUDE.md. Edits there reach nobody else (except the managed import block, which setup.py owns).gitpull. It hard-resets the live harness.~/.claude/agents symlinks. Plugins load agents already; a symlink double-loads them un-namespaced.scripts/setup-claude.sh. It is the pre-plugin installer, superseded by setup.py.setup.py --status or /validate-harness, not ls, to see whether the guard is actually active.| Purpose | Path |
|---|---|
| Clones (the live config) | ~/projects/claude-skills/{claude-shared, claude-admin | claude-dev} |
| Linker and adapters | claude-shared/setup.py, claude-shared/adapters/*.json |
| As-built reference | ~/projects/claude-skills/CLAUDE.md |
| Architecture docs | claude-shared/docs/architecture/ |
| Onboarding guide | claude-shared/docs/onboarding.md |
| Role skills reference | ~/.claude/skills/CLAUDE.md → role repo CLAUDE.md |
| Shared platform docs | ~/.claude/docs/shared/ → claude-shared/docs/ |
| Safety guard + tests | claude-shared/hooks/destructive-guard.sh, test-destructive-guard.sh |
| Backups | claude-shared/scripts/backup-harness.sh, backup-claude-home.sh |