← Back to Portal

Claude Artifacts

How the AI harness configuration — skills, agents, hooks and instructions — is deployed to administrators and developers on linuxserver.lan
Measured 2026-11-11 from claude-shared@ed2a19f · claude-admin@2f313c0 · claude-dev@c0f89ba
3
Git repos
64 / 60
Skills (admin / dev)
7
Agents per role
3
AI harnesses
1
Safety guard
0
Build steps

📖 Reference pages

Deeper pages, one topic each, from a first skill to the internals.

🌱 Your first Claude skill
/claudeskills/newskill/ · beginner

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.

Open the guide →
📚 Skills by repo
/claude-artifacts/skills/ · shared · admin · developer

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.

Browse the skills →
🪝 Hooks
/claude-artifacts/hooks/ · shared · admin · developer

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.

See the hooks →
🤖 Agents
/claude-artifacts/agents/ · shared · admin · developer

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.

Meet the agents →
⌨️ Commands & other artifacts
/claude-artifacts/commands/

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 →
🧠 Context Save
/claude-artifacts/context-save/

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.

Open the reference →

🔁 The one-line model

GitLab
claude-skills/*
the authority
→
Your clone
~/projects/claude-skills/*
the only working copy
→
setup.py
symlinks, plus generated settings where a harness needs its own format
→
Every harness
Claude Code · Codex · Antigravity
There is no build and no install step. The harnesses read the git working tree through symlinks, so git pull is the deployment and an edit in the clone is live in Claude Code immediately.

👥 Administrator vs developer — what each role receives

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.

🛠️ Administrator
group: administrators → claude-shared + claude-admin
  • Role skills (6) service-deploymentkeycloak-setuptraefik-setuppostgres-integrationnetwork-confignginx-static-site
  • Role agents (3) architectdevelopersecurity
    Infrastructure view: they design and run the platform.
  • Slash command /cexit save a session summary before exiting
  • Changing shared config Push to claude-shared main (Maintainer)
  • Totals 64 skills · 7 agents
🤝 Everyone
claude-shared — cloned by both roles
  • Skills (58) cards & boards, deploy checks, reviews, testing, decks, project notes (/context-save), cross-project hand-off (/refocus)
  • Agents (4) pmqabugfixersemble-search
  • Hooks safety guard, context-save prompts, session recovery snapshot, decision-card check
  • Output style enterprise-architect
  • Launchers (bin/) runaiagent-controlagent-quotacodex-handoff
  • Shared docs platform philosophy, shared directives, agent docs
💻 Developer
group: developers → claude-shared + claude-dev
  • Role skills (2) keycloaktraefik
    The app-side contract, and what to hand the administrator.
  • Role agents (3) architectdevelopersecurity
    Same names as the admin agents, different bodies: they consume infrastructure, they do not manage it.
  • Slash commands none role-specific
  • Changing shared config Merge request to claude-shared (main is protected)
  • Totals 60 skills · 7 agents
Only one role repo is linked per account, so the same-named 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.

🚀 Deploy it to your account — first time

Prerequisites
all five, before step 1
  • GitLab account on gitlab.ai-servicers.com — administrator creates it
  • Project membership on claude-shared and your role repo — granted per repo
  • SSH key registered in GitLab (port 2222)
  • Unix group administrators or developers — check with id -nG
  • Python 3.11+ (older versions skip the Codex config checks)
A clone that fails with access denied means a missing account or membership. Ask the administrator; do not work around it.
Install
about five minutes
# 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.

🔄 Keep it current — the change lifecycle

Making a change
  1. Edit in ~/projects/claude-skills/<repo>/. That is the live path; Claude Code already sees it.
  2. Commit and push. Administrators push; developers open a merge request on claude-shared.
  3. Everyone else runs gitpull skills (or gitpull all).
  4. Re-run setup.py only for a new repo, a new harness, or a new skill on Antigravity (it links skills one at a time).
  5. Start a new session: new agents appear mid-session, new skills and hooks at the next start.
Adding something
  • New skill skills/<name>/SKILL.md in the right repo
  • New agent agents/<name>.md — rendered for Codex and Antigravity by setup.py
  • New harness one file, claude-shared/adapters/<name>.json; no code change
  • Which repo? Useful to both roles → claude-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.

📁 What lands where

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)
Everything 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.

🧠 Boot sequence — what a session loads

Layer 0 Model
General knowledge. Nothing about this platform.
Layer 1 User level
~/.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.
Layer 2 Platform
~/projects/CLAUDE.md — the master index of services, tiers and the autonomous-mode boundary.
Layer 3 Project
The project's CLAUDE.md. Its context-save menu points to docs/context/*, read when the task needs them.
Layer 4 On demand
Skill bodies when a skill is invoked (only names and descriptions load at start), agents when delegated, MCP tools through code-executor, and hooks firing at set moments.
Codex and Antigravity start at the git root and do not expand @-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.

🧩 Harness matrix

Claude Code v2.1.322Codex CLI v0.165.0Antigravity 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.

Outside Claude Code, every harness keys skills on the frontmatter 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.

⚙️ What runs automatically

🛡️ Safety guard
claude-shared/hooks/destructive-guard.sh

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 Code registered twice on purpose: by the plugin, and by a real copy in ~/.claude/hooks/ that survives a broken or half-updated plugin
  • Changing it edit the repo copy and run its test suite; setup.py overwrites the fallback copy, so hand-patching that copy does nothing
🔔 Session hooks (Claude Code)
claude-shared/hooks/hooks.json
WhenWhat
Session startPick up a /refocus brief; offer the recovery snapshot
Before a tool runsSafety guard; recovery snapshot near the context limit; decision-card format check
On /clear /compact /exitPrompt to save project knowledge (/context-save)
Stop, compact, session endContext-save check; close out a refocus session
NotificationLog it

🔌 MCP — one gateway for tools

Any harness
Claude Code · Codex · Antigravity
→
Role-aware wrapper
/usr/local/bin/mcp-code-executor
maps your Unix group to your role
→
code-executor
11 tools: GitLab issues & boards, Review Board, chat, code execution, tool search
setup.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.

⌨️ Commands

CommandWhat it does
setup.pyLink into every installed harness. Idempotent; safe to re-run.
setup.py --statusWhat is linked, wired and registered for you right now
setup.py --dry-runShow the plan, write nothing
setup.py --only <harness>One harness: claude, codex, antigravity
setup.py --pruneRemove 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-harnessInside 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 allRefresh 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.

⚠️ Rules that bite

  • One instructions file: 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.
  • Two files belong to no repo: ~/.claude/CLAUDE.md and ~/projects/CLAUDE.md. Edits there reach nobody else (except the managed import block, which setup.py owns).
  • Commit before gitpull. It hard-resets the live harness.
  • Do not recreate ~/.claude/agents symlinks. Plugins load agents already; a symlink double-loads them un-namespaced.
  • Do not run scripts/setup-claude.sh. It is the pre-plugin installer, superseded by setup.py.
  • A hooks file is not enforcement. Read setup.py --status or /validate-harness, not ls, to see whether the guard is actually active.

📍 Key paths

PurposePath
Clones (the live config)~/projects/claude-skills/{claude-shared, claude-admin | claude-dev}
Linker and adaptersclaude-shared/setup.py, claude-shared/adapters/*.json
As-built reference~/projects/claude-skills/CLAUDE.md
Architecture docsclaude-shared/docs/architecture/
Onboarding guideclaude-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 + testsclaude-shared/hooks/destructive-guard.sh, test-destructive-guard.sh
Backupsclaude-shared/scripts/backup-harness.sh, backup-claude-home.sh