plugins/wiki/skills/setup/SKILL.md
Initialize or update project context. Use when starting a new project, setting up context structure, configuring project documentation, or re-run to verify and repair an existing setup. Idempotent — safe to run multiple times.
npx skillsauth add bcbeidel/wos setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Initialize or update project context. Idempotent — safe to re-run.
Legacy markers auto-migrate. If AGENTS.md still uses the pre-rename
<!-- wos:begin -->/<!-- wos:end -->markers, this skill rewrites them to<!-- wiki:* -->in place. No user action is required beyond re-running/wiki:setup.
Check which parts of the project structure already exist:
AGENTS.md with managed-section markers (<!-- wiki:begin --> /
<!-- wiki:end -->; legacy <!-- wos:* --> markers auto-migrate)## Working Agreements section (outside the markers)CLAUDE.md with @AGENTS.md referenceIf AGENTS.md does not exist, create it with a # AGENTS.md heading.
Write the managed section between <!-- wiki:begin --> / <!-- wiki:end -->
markers. The managed section is intentionally minimal: a one-line pointer
to RESOLVER.md (when one exists) for directory-level routing.
Filing conventions and document standards are not encoded here —
projects that want them encode them in RESOLVER.md (routing) or
freeform sections of AGENTS.md (conventions). Project-wide behaviors
(workflow defaults, communication-style bullets) live in
## Working Agreements outside the markers (see Step 3).
The markers enable automated updates — never place managed content outside them.
If markers already exist, the section is replaced with the latest version.
Capture or review the per-project ## Working Agreements section. This
is the single behavior section — it covers both how the agent
collaborates on work (e.g., "Codify repetition") and any
communication-style bullets the user wants to add (e.g., "Be direct").
The seed is the encouraged default for every project. Show it; let
the user adopt, edit, or skip. Call has_working_agreements(content)
to pick the branch.
If has_working_agreements(content) returns False (section
absent):
Run the Absent branch in references/working-agreements-capture.md:
Codify repetition and
Watch for patterns are recommended for every project<!-- wiki:end --> marker (or at end of file if no markers
present). Include a blank line before the heading.If has_working_agreements(content) returns True (section
already exists anywhere in AGENTS.md, inside or outside markers):
Run the Present branch in references/working-agreements-capture.md:
## Working Agreements heading through the next ## heading
or end of file).The section is user-owned. The skill only writes what the user approved in the current run.
If CLAUDE.md does not exist, create it with:
@AGENTS.md
If CLAUDE.md exists but does not contain @AGENTS.md, add the reference
at the top of the file.
After scaffolding, decide whether the repo needs a RESOLVER.md and offer
the chain explicitly. This is the setup's last action.
Skip silently if RESOLVER.md already exists at the project root.
Otherwise, count top-level directories that contain ≥2 markdown files
with valid YAML frontmatter. Ambient dirs (.git, node_modules,
.venv, dist, build, etc.) are excluded.
If the count meets the resolver threshold (default 3; the user may pass a different threshold), prompt:
"This repo has N directories with markdown content ({list}) but no
RESOLVER.md. A resolver gives Claude a routing table for filing new docs and loading context. Run/build:build-resolvernow? (yes / not yet / skip)"
/build:build-resolver. Do not
re-run the working-agreements prompt.If the count is below threshold, do nothing. AGENTS.md alone suffices.
The default mirrors /build:build-resolver's own primitive check
(build-resolver/SKILL.md Step 0). Both consult the same
check_resolver_recommendation helper in wiki.project, which accepts
a threshold argument — projects with different conventions can pass
their own value rather than relying on the default.
Report what was done:
wos: markers were auto-migrated to wiki:)/build:build-resolver, or
recommendation deferredIf everything was already set up, confirm: "Project context is up to date. No changes needed."
git diff --name-only HEAD) before proceeding. Untracked-only changes are advisory — note them but do not block. If tracked modifications exist, warn the user: setup writes to AGENTS.md and CLAUDE.md, making the diff ambiguous and recovery harder if setup fails partway. Suggest git stash as remediation and wait for the user to decide whether to stash, continue anyway, or abort.Chainable to: /build:build-resolver (when Step 5 detects threshold crossing without an existing resolver); /wiki:lint (audit content quality)
tools
Use when the user wants to "audit a help skill", "review my plugin index", or "verify my help-skill is up to date". Audits a plugins/<plugin>/skills/help/SKILL.md against the help-skill rubric — coverage, freshness, frontmatter fidelity, plus five judgment dimensions and a trigger-collision check.
tools
Use when the user wants to "scaffold a help skill", "add a /<plugin>:help command", or "build a plugin index skill", or wants to give a plugin an orientation surface that lists its skills and common workflows. Produces a SKILL.md at plugins/<plugin>/skills/help/SKILL.md.
tools
Audits pair-level integrity of a primitive-pair (the artifact `/build:build-skill-pair` produces) by walking the four required artifact slots — principles doc, `build-<primitive>/SKILL.md`, `check-<primitive>/SKILL.md`, and the `primitive-routing.md` registration — and reports cross-artifact issues a per-SKILL.md checker cannot see: missing principles doc, divergent principles paths between halves, absent routing registration, missing build→check handoff. Per-half structural compliance with the unified pattern (`check-skill-pattern.md`) is delegated to `plugins/build/_shared/scripts/check_skill_pattern.py`. Use when the user wants to "audit a skill pair", "review a primitive pair", or "validate the skill pair for X". Not for auditing a single SKILL.md — route to `/build:check-skill`. Not for re-distilling a stale principles doc — route to `/build:build-skill-pair`.
testing
Audit a root-level resolver — verify AGENTS.md pointer, managed-region integrity, filing-table coverage against disk, context-table actionability, and trigger-eval pass rate. Use when the user wants to "audit a resolver", "validate routing table", or "find dark capabilities".