Agent framework setup
Skill nubasu/Pseudo-Fable-Framework/.claude/skills/agent-framework-setup
Guided initial installation of the pseudo-fable framework family into a target project — inspect the target first, interview for a configuration, enforce the exclusivity rules, assemble CLAUDE.md / AGENTS.md / skills / hooks in the correct order with idempotent signature checks, then verify with agent-framework-doctor. Use when asked to install, set up, or add the agent framework (the pseudo-fable family, or any of its frameworks/modules) to a new or existing project.From its SKILL.md
npx -y skills add nubasu/Pseudo-Fable-Framework --skill agent-framework-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
9.8 KB, ~2.2k tokens by cl100k_base, as published. Nobody here has run it
agent-framework-setup — install the family without breaking the target
This skill runs in the Pseudo-Fable-Framework store and writes into a target project. frameworks/ is the source of truth; the root README carries the same recipes for humans — this skill adds what raw snippets cannot: inspection before writing, merging instead of overwriting, and verification at the end.
0. Gather inputs (ask only for what the request didn't say)
- $storage — this store's
frameworks/directory. If the session is not running inside the store (skill installed user-level), ask where the clone lives. - $proj — the target project root. Must exist; warn if it is not a git repo (still installable).
- Configuration — if the user named one, take it. Otherwise ask, presenting the bases as one choice and the modules as a multi-select. Recommend lift + orchestrate for PL + worker operation, solo for a single always-Opus session. Token costs live in the store README's configuration table — quote them when asking.
| Base (pick one) | Modules (any, on top of any base) |
|---|---|
| solo — single Opus does everything | retro — session restore + rule growth |
| lift — two-layer execution discipline | incident — production incident response |
| lift + orchestrate — PL + workers (recommended) | harness — hook guardrails |
| lift + orchestrate + blueprint — plus spec-driven upstream | Codex AGENTS.md (requires orchestrate) |
| team — single AGENTS.md, mixed team |
Domain packs — a third category: deep, quality-first domain discipline. Any number, on top of any base; in a dedicated single-purpose repo a pack may also run without a base (legal; doctor WARNs that the family's general discipline is absent).
| Domain pack | Scope |
|---|---|
| blender — full-depth Blender 3D modeling (7 skills; hero-tier quality by default, token-heavy by design) | modeling via bpy scripts or a Blender MCP |
1. Inspect the target BEFORE writing anything
Read what exists: CLAUDE.md, AGENTS.md, .claude/skills/, .claude/hooks/, .claude/settings.json, .gitignore.
Inventory installed pseudo-fable components: every template announces itself with an HTML comment <!-- pseudo-fable-<name> vX.Y in its first lines — grep CLAUDE.md and AGENTS.md for <!-- pseudo-fable-. Three modes fall out:
- Fresh — no pseudo-fable signatures anywhere.
- Add-on — some components present; install only the missing part of the selection, never re-append.
- Conflict — the selection violates an exclusivity rule against what is installed → stop and put the choice to the user. Never install both sides "to be safe".
Legacy: installs made before the 2026-07-05 rename carry <!-- fable-<name> signatures — count them as the same components (treat as installed; never append the pseudo-fable version on top of them).
2. Exclusivity rules (hard constraints)
- CLAUDE.md base: solo XOR lift — never both.
- solo inlines all protocols → do not install any pseudo-fable skills alongside it.
- One AGENTS.md at the root: team XOR orchestrate-minimal (team is the superset).
- Modules (retro / incident / harness) and domain packs (blender) compose with every base, including team. A domain pack without any base is legal only in a dedicated single-purpose repo — flag the missing general discipline.
3. Assemble — correct order, idempotent, encoding-safe
What each selection contributes:
| Selection | CLAUDE.md | .claude/skills/ | Other files |
|---|---|---|---|
| solo | base ← pseudo-fable-solo/CLAUDE.template.md | — (inlined) | — |
| lift | base ← pseudo-fable-lift/CLAUDE.template.md | deep-plan, finish-gate, long-task-state, root-cause-debug, test-protocol | — |
| orchestrate | append ORCHESTRATE.template.md | delegate, accept-work | optional Codex AGENTS.md ← orchestrate AGENTS.template.md |
| blueprint | append BLUEPRINT.template.md | spec-interrogate, design-doc, ticketize | — |
| team | bridge line @AGENTS.md near the top | — | AGENTS.md ← pseudo-fable-team/AGENTS.template.md |
| retro | append RETRO.template.md | retro, session-bootstrap | — |
| incident | append INCIDENT.template.md | incident-response, postmortem | — |
| blender | append BLENDER.template.md | blender-spec, blender-build-loop, blender-topology, blender-materials, blender-light-camera, blender-scene, blender-verify | optional: append blender AGENTS.template.md to AGENTS.md (external agents) · optional hook layer: 2 script twins → .claude/hooks/ + the pack's hooks block into .claude/settings.json |
| harness | append HARNESS.template.md | — | .claude/hooks/ (4 script twins, .sh+.ps1) + hooks block in .claude/settings.json |
Rules:
- Append order: base (solo/lift) → orchestrate → blueprint → retro → incident → blender → harness. Verbatim concatenation — no headers or commentary of your own.
- Idempotency: before appending a component, grep the target file for its
<!-- pseudo-fable-<name>signature; if present, skip it and say so in the report. Upgrading an older installed version in place is manual work, not this skill's. - Existing CLAUDE.md (fresh install over a real project): the pseudo-fable base becomes the file; the previous content moves under its
## Project specificssection. Keep the original asCLAUDE.md.bakuntil agent-framework-doctor passes, then delete it. - Assemble markdown with Read + Write file tools, not shell redirection — Windows PowerShell 5.1 defaults to UTF-16/BOM and mojibakes the templates.
- Copy skills and hooks with recursive copy commands (
cp -R/Copy-Item -Recurse), store → target only. Never edit files underframeworks/during an install; template improvements go through the normal contribution flow afterwards. .shhook scripts must keep LF endings — copy them, don't rewrite them.- No store paths inside any target file — the installed project must not depend on where this repo lives.
4. Module specifics
- harness —
settings.jsonabsent → copysettings.hooks.jsonwhole. Present → merge only its"hooks"block into the existing JSON (preserve every other key; re-parse to validate). On Windows without Git Bash usesettings.hooks.powershell.json; with Git Bash the bash default is correct everywhere. Offer strict verify —PSEUDO_FABLE_HARNESS_VERIFY_CMDin the settingsenvblock set to the project's real check command — only with explicit consent, since hooks execute it with shell privileges. - team — if the target has no CLAUDE.md, create one holding just the
@AGENTS.mdbridge line; the bridge is unnecessary only where Claude Code reads AGENTS.md natively (tell the user to verify). - blender — the AGENTS side is an append, not a file copy: add blender's
AGENTS.template.mdto the end of whichever AGENTS.md base is installed (team or orchestrate-minimal; same signature-check idempotency as CLAUDE.md appends). Offer it only when external agents are in play; if no AGENTS.md exists and the user wants one for a Blender-only external-agent repo, create it holding just the addendum plus a Project specifics section. - blender hooks (optional) — same mechanics as harness:
settings.jsonabsent → copy the pack'ssettings.hooks.jsonwhole; present → merge only itshooksblock (when harness is also installed, the Stop/PostToolUse arrays concatenate — both packs' hooks coexist). On Windows without Git Bash use the pack'ssettings.hooks.powershell.json. The two scripts execute no user commands (read-only guards), so the normal install confirmation suffices. Kill switch:PSEUDO_FABLE_BLENDER_DISABLE=qa,probe|all. - Codex AGENTS.md / team — after copying, sync the
Project specificssection with CLAUDE.md's. CLAUDE.md is the source of truth.
5. Finish and verify
.gitignore: ensure.claude/state/is listed (create the file if missing; no duplicate entries).- Offer to fill
## Project specificsnow by scanning the target (build / test / lint commands, layout) — the README's/initmerge, done in place. Sync AGENTS.md if present. - Run agent-framework-doctor against the target (invoke the skill). Fix what it FAILs, then delete
CLAUDE.md.bak. - If the target is a git repo, offer a single install commit so future local growth stays diffable against the baseline.
- Report: components installed vs skipped-as-existing (table), files written, resident-token estimate — and the manual steps only the user can do: open a NEW session in the target, check the pseudo-fable skills are listed, for harness run
/hooksand confirm the four hooks, then run one small task and watch finish-gate (solo: §P3) fire before the completion report.
Anti-patterns
- Appending without the signature check — the double-appended section is the most common broken install.
- Overwriting an existing CLAUDE.md instead of folding it into Project specifics — that deletes the project's own rules.
- Installing solo and lift together because the request mentioned both — put the exclusivity choice to the user instead.
- Assembling markdown through the shell on Windows — encoding roulette.
- Reporting "installed" without an agent-framework-doctor pass, or without telling the user what static checks cannot prove (hook registration needs a session restart; skills discovery has its own runtime rules).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.