Skip to content
Skills Library
AI & agents · Building & coding

agent-scaffold

/agent-scaffold

Use to initialize, inspect, or upgrade a Claude Code + Codex harness with .agents/ SSOT, real-symlink projections, hooks, subagents, authority docs, LF/CRLF policy, and selected project conventions. Adopt existing layouts. Not for ordinary commits, testing, docs, releases, or third-party skill installation.

Repository
skills ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
49
Scripts
13
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 13 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: agent-scaffold.sh, assets/runtime/generate-subagents.py, assets/runtime/hooks/authority_doc_budget.sh, assets/runtime/hooks/hook-common.sh, assets/runtime/hooks/hook-launcher.sh, assets/runtime/hooks/hook-paths.py, assets/runtime/hooks/trunk_edit_guard.sh, assets/runtime/release/extract-changelog.py, assets/runtime/release/release-plan.py, assets/runtime/relink-skills.sh, assets/runtime/symlink-ma

What it does and when to use it

Use to initialize, inspect, or upgrade a Claude Code + Codex harness with .agents/ SSOT, real-symlink projections, hooks, subagents, authority docs, LF/CRLF policy, and selected project conventions. Adopt existing layouts. Not for ordinary commits, testing, docs, releases, or third-party skill installation.

Original author description

Use to initialize, inspect, or upgrade a Claude Code + Codex harness with .agents/ SSOT, real-symlink projections, hooks, subagents, authority docs, LF/CRLF policy, and selected project conventions. Adopt existing layouts. Not for ordinary commits, testing, docs, releases, or third-party skill installation.

How it works

  1. Boundaries
  2. Modes
  3. Workflow
  4. On-demand references
Original SKILL.md headings · 90 lines, 888 words
SKILL.md preview
---
name: agent-scaffold
description: "Use to initialize, inspect, or upgrade a Claude Code + Codex harness with .agents/ SSOT, real-symlink projections, hooks, subagents, authority docs, LF/CRLF policy, and selected project conventions. Adopt existing layouts. Not for ordinary commits, testing, docs, releases, or third-party skill installation."
---

# Agent Scaffold

Establish or incrementally maintain a project's Agent harness **and usable project guidance**.
The installer owns deterministic harness assets; the Agent adopts and fills project-specific
conventions. A successful installer run alone does not complete project onboarding.

```bash
bash <skill-dir>/agent-scaffold.sh <mode> [--profile default|light] [--domains all|none|list] [--json]
```

Run inside the authorized target checkout. The runtime requires git, Python 3.8+, Bash 3.2+,
and real file/directory symlinks. `.agents/` owns harness sources; `.claude/` and `.codex/`
contain host projections/configuration, and `CLAUDE.md` links to the lean `AGENTS.md`.

## Boundaries

- Discussion, preview, `plan`, `doctor`, and `verify` are read-only. A first invocation is
  not automatically permission to initialize; use the requested scope.
- Preserve project layout, language, build tools, CI, permissions, external-worktree ownership,
  and third-party entries. Directory names are clues, not authority or a migration request.
- Never hand-edit generated projections or resolve ownership conflicts by overwriting them.
  Reconcile only exact scaffold-owned hook identities.
- Newly authored project guidance belongs to the project, outside the managed AGENTS block.
  That block holds harness rules and guide routes only; never add project facts or controllers.
- Keep repository EOL defaults in `.gitattributes`; preserve project exceptions and existing
  `.editorconfig`. Installation never renormalizes, stages, or rewrites unrelated user files.
- Existing guidance is an input, not untouchable: repair confirmed drift within scope without
  imposing a new layout, metadata schema, inventory, or approval process.

## Modes

| Mode | Installer responsibility |
|---|---|
| `apply` | Add/reconcile harness assets; refuse runtime drift requiring `upgrade` |
| `plan` | Preview asset create, merge, adopt, refresh, and attention states without writes |
| `doctor` | Check prerequisites and real-symlink capability |
| `verify` | Check active harness assets, managed drift, hooks, and projections |
| `upgrade` | Refresh current managed runtime and reconcile the contract |

`default` includes worktree/trunk-guard governance; `light` omits it. An omitted profile reuses
an identifiable installed choice; a fresh install uses `default`, and ambiguous legacy state
needs an explicit choice. JSON reports describe harness checks, not project-guidance acceptance.

## Workflow

1. Resolve the task checkout, revision, applicable authority chain, and existing lifecycle
   owner; do not infer them from session cwd or create a second worktree manager.
2. For full initialization or upgrade, follow [one-time selection](references/onboarding-selection.md). Offer all domains by default on first use or legacy migration; ask which to exclude once, reusing an explicit answer already given. Until the user answers, the selection stays pending: do not record it or write project guidance. Previews, `doctor`/`verify`, and runtime-only requests neither ask nor record. Reuse a recorded selection on later runs without asking again. Read [project conventions](references/project-conventions.md) for selected domains. Inspect relevant entry points and actual configurations/callers before expanding the scan. Reuse existing answers; identify missing document, command, test-quality, verification, source, and safety guidance within the accepted selection. Use the relevant references below; selected testing does not impose TDD, nor does selected release authorize publication. This assessment also applies to previews, without writing or running setup commands.
3. Run `plan` for assets; combine its `apply_mode` and profile with the needed project-guidance
   changes. Resolve material scope/ownership conflicts. Follow existing authorization instead
   of demanding a new approval round for every routine, already authorized step.
4. For an authorized initialization/upgrade, run the indicated mutating mode. Then **write or
   reconcile the selected missing project guidance** in its existing homes, and link it from the Agent
   entry point. Respect an explicitly runtime-only request; do not stop at suggestions. The
   installer ships and routes each selected domain's generic rules (`.agents/conventions/`,
   `.agents/tools/release/`); add only the project facts they defer to, never a copy of them.
5. Verify harness assets with the same profile. Separately walk a new-Agent reader task using
   only the resulting entry points: find the applicable docs, real commands/cwd/effects,
   selected domain conventions, generated-source owners, verification limits, and
   delivery boundary. Check changed links and
   affected commands safely; preserve unavailable evidence as a gap rather than inventing it.
6. Report adopted locations, material additions/repairs, observed checks, and unresolved gaps.
   Distinguish asset installation, project-guidance coverage, and actual host trust/discovery.
   Equivalent existing coverage can require no project edits; repeated runs must not duplicate
   prose or resurrect deliberately merged/deleted guidance just to match an earlier template.

## On-demand references

| Need | Reference |
|---|---|
| Default-all first setup, legacy migration, one-time opt-outs, saved choices | [Onboarding selection](references/onboarding-selection.md) |
| First-use project guidance, layout adoption, docs/tools, and incremental maintenance | [Project conventions](references/project-conventions.md) |
| Specification status, semantic preservation and acceptance | [Specification conventions](references/specification-conventions.md) |
| Commit scope, delivery, version/notes authorities and release completion | [Delivery conventions](references/delivery-conventions.md) |
| Project test design, dependency boundaries, existing gates, and TDD policy | [Testing conventions](references/testing-conventions.md) |
| Session entry, task paths, external worktrees, and lifecycle handoff | [Workspace context](references/workspace-context.md) |
| EOL defaults, exceptions, and authorized migration | [Line endings](references/line-endings.md) |
| Installed assets, profiles, SSOT, and third-party coexistence | [Harness layout](references/harness-layout.md) |
| Hook ownership and host trust | [Host integration](references/host-integration.md) |
| Project-owned format-on-edit integration | [Format hooks](references/format-hooks.md) |
| Lean root/nested authority documents | [Authority documents](references/authority-docs.md) |
| Existing glossaries, language equivalents, and terminology ownership | [Terminology](references/terminology.md) |
| Subagent authoring/projection and existing-agent import | [Subagents](references/subagents.md) · [Import](references/subagent-import.md) |
| Adopting existing authority documents or host agents | [Retrofit](references/retrofit.md) |
| Platforms, symlink repair, and checkpoint limitations | [Platform support](references/platform-support.md) |
| Structured reports and troubleshooting | [Diagnostics](references/diagnostics.md) |

See [NOTICE.md](NOTICE.md) for attribution of adapted testing and terminology guidance.
Files in this package (49)
  • NOTICE.md 2 KB
  • SKILL.md 7 KB
  • agent-scaffold.sh 14 KB
  • assets/conventions/docs-reorganization.md 6 KB
  • assets/conventions/docs.md 4 KB
  • assets/conventions/environment.md 2 KB
  • assets/conventions/git.md 2 KB
  • assets/conventions/specs.md 2 KB
  • assets/conventions/terminology.md 2 KB
  • assets/conventions/testing.md 4 KB
  • assets/conventions/tools.md 2 KB
  • assets/host/claude.settings.json 1 KB
  • assets/host/codex.hooks.json 1 KB
  • assets/runtime/generate-subagents.py 37 KB
  • assets/runtime/relink-skills.sh 2 KB
  • assets/runtime/symlink-manager.py 15 KB
  • assets/runtime/worktree.sh 18 KB
  • assets/runtime/hooks/authority_doc_budget.sh 2 KB
  • assets/runtime/hooks/hook-common.sh 4 KB
  • assets/runtime/hooks/hook-launcher.sh 2 KB
  • assets/runtime/hooks/hook-paths.py 16 KB
  • assets/runtime/hooks/trunk_edit_guard.sh 2 KB
  • assets/runtime/release/README.md 33 KB
  • assets/runtime/release/extract-changelog.py 6 KB
  • assets/runtime/release/release-plan.py 22 KB
  • assets/scaffold/AGENTS.harness.md 4 KB
  • assets/scaffold/agents-skills.README.md 1 KB
  • assets/scaffold/agents-subagents.README.md 1 KB
  • assets/scaffold/editorconfig 1 KB
  • assets/scaffold/gitattributes 1 KB
  • references/authority-docs.md 3 KB
  • references/delivery-conventions.md 4 KB
  • references/diagnostics.md 6 KB
  • references/format-hooks.md 1 KB
  • references/harness-layout.md 11 KB
  • references/host-integration.md 15 KB
  • references/line-endings.md 4 KB
  • references/onboarding-selection.md 6 KB
  • references/platform-support.md 6 KB
  • references/project-conventions.md 11 KB
  • references/retrofit.md 2 KB
  • references/specification-conventions.md 2 KB
  • references/subagent-import.md 4 KB
  • references/subagents.md 5 KB
  • references/terminology.md 3 KB
  • references/testing-conventions.md 4 KB
  • references/workspace-context.md 8 KB
  • scripts/harness-core.py 80 KB
  • scripts/managed-assets.json 8 KB

Versions

The database has no other skills named agent-scaffold.

Database snapshot: 13.11.2026 · package version fa8a43b2f4c2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100agent-sync
    Syncs coding agent config files so AGENTS.md is source of truth and CLAUDE.md/instructions.md are symlinks. Ensures skills and commands are shared across Claude, Codex, Cursor, and opencode. Use when adding skills, commands, or modifying agent config.
  • 90harness-setup
    Use when initializing or upgrading Oh My Harness configuration for a Codex project.
  • 100agent-init
    为 Claude Code 初始化项目协作骨架。当用户希望创建或补齐 CLAUDE.md 与 .claude,并生成 rules、memory、agents、hooks 配置的起始模板时使用。Codex 仅作为 Claude Code 临时调用的任务执行工具,本 skill 不生成 AGENTS.md、.codex 或 Codex agents。
  • 100agents-md-author
    Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap…
  • 100setup-project
    Scaffolds a project with the Claude Agent Pack structure: copies CLAUDE.md (the consumer block, from docs/CLAUDE.template.md), docs/CONVENTIONS.md (from template), docs/MEMORY-WRITING.md, and creates the memory/ subdirectories. Runs scripts/setup-project.sh and guides the user…
  • 90harness-observatory
    Build a local Langfuse-style observability dashboard from your own Claude Code and Codex session logs, and draft evidence-backed CLAUDE.md/AGENTS.md changes from it. Use for "harness dashboard", "observability for my agent sessions", "how did my agents do this week", or a weekly harness review.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.