/credo:migrate runs instead · from credo
Migrates an existing repo into the .credo/ structure by copying scattered process docs and open work into conformant work items. Copy-only and additive until a final user-gated tidy step.
This skill never runs in Claude Code
It ships in credo at skills/, but /credo:migrate (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
.credo/A generic, reusable procedure to migrate ANY existing repo into the credo target form. It
tells you HOW to reach that end state safely. Everywhere below, <repo> is the target
repo and "the user" is its owner. This skill contains no personal, project-specific, or
absolute-path data.
The binding target form is defined INSIDE this plugin, not by any external design
document. At the end of a migration, everything under .credo/ must match:
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-init.sh" -
folder layout and the files it creates (see step 1). That tree is the layout authority.items skill - the work-item model: folder = status, the lean frontmatter, the
body sections, the Definition of Done, and id issuance.safety skill - the highest-priority filesystem-protection and
no-autonomous-installs rules; they bind this whole procedure.requirements-verbatim skill - the append-only, never-censored requirements log
and the strict separation of user-verbatim text from any assistant proposal.verify skill - what a real (visual, per-viewport) verification is, which
governs whether a criterion counts as exercised.budget skill - budget caps and the commit-identity gate, when a migration run
is autonomous and commits anything.Reference these by name. If any instruction points you at an external "structure design" document, ignore it - the plugin-internal authority above is the target form.
.credo/ matches the target form above: folder layout, file names, frontmatter, and the
items model. It is NOT a verbatim copy of the old files under new folders..credo/. The originals stay exactly where they are until the final step (8), so you may
restructure aggressively inside .credo/.requirements-verbatim rule). File names, placement, frontmatter, and splitting sources
into items ARE adapted.The safety skill applies in full and overrides any task instruction. In addition, these
migration-specific safety rules hold at every step:
rm, find -delete,
shred). The only removal is a MOVE to .deleted/ in the final step, with the path
mirrored (step 8).-L. Never follow a symlink that points OUT of the repo
(it can pull external content in, or write into another repo). Handle such files
separately, with the user..env*, keys, credentials, ssh, or smb credentials.rm can delete the
file you just wrote. For a case-only rename, use a two-step move via a temp name; never
rm the case-twin of a just-written file. The credo-item-move.sh helper already
contains this two-step case-only-rename guard - prefer it for any item move.budget skill
apply to any autonomous run that commits.This is a long, multi-phase operation: delegate the heavy work (inventory, classification,
item cutting, and the self-audit) to subagents per the orchestration skill, and keep the
safety skill in force inside every subagent.
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-init.sh". It is
idempotent and creates the .credo/ namespace: docs/, screenshots/,
items/{1_todo/{1_clarify,2_go,3_blocked},2_done,3_verified,4_archived,parked/{hold,future}},
process/{requirements,handoffs/archive,reports}, checklists/, an empty id-counter,
and a per-project config stub. Do not hand-create this tree - let the script own the
layout so it stays the authority.credo-init.sh excludes ALL of .credo/** via
.git/info/exclude; persistence is disk and backups, not commits. If the user opts in
to versioning .credo/ in this repo, re-run with CREDO_VERSION_TRACKED=1, which
excludes ONLY .credo/config and .credo/screenshots/ and versions the rest. config
and screenshots are ALWAYS excluded so personal values and binaries never get
committed.id-counter = at least the highest existing legacy id in the repo, so new ids never
collide and old numbers are never reused. If there are no legacy ids, leave it empty
(treated as 0). Issue every new id afterwards with
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-id-next.sh", never by scanning folders or taking
max+1 yourself. The helper also scans the items tree on each call as a safety floor, so
even if the counter is set too low it reconciles up to the highest existing id (and warns
on stderr) rather than reissuing a used id."${CLAUDE_PLUGIN_ROOT}/scripts/credo-config.sh" source release.auto prints project:
(the repo's .credo/config already sets release.auto). Otherwise ask with
AskUserQuestion "Release finished changes automatically?" with the options Yes (writes
release.auto: true) and No (default, writes release.auto: false), in the same round as
the other migration questions when that round exists, else in its own round. Explain in
one sentence that, when on, credo releases once no GO item is buildable and changelog fragments
exist (fallback at 15 fragments or after 7 days, whichever comes first), using this
project's own release procedure. Write the answer into the project .credo/config as a
nested release: block with auto: true or auto: false (set the auto: line of an
existing release: block, else append the block; keep every other line intact, never
duplicate a top-level key). Fully autonomous migration never asks this and keeps the
default false.Keep a separate, non-versioned working folder (for example .migration/, git-excluded)
for the migration run itself: the plan, a progress / handoff note, the item-candidate
list, and any feedback on this procedure. Keep it distinct from .credo/ (the target).
requirements / verbatim, handoff / session, progress / status, diag,
audit, verification / verify, deeptest / test-run / final, gap, testplan,
plan / buildplan, and stable convention docs (authority-order, persistence,
working-method). If a file matches no fragment or several, do not guess: ask (user
present) or report (autonomous)..credo/. .credo/ holds prose and data only. Scripts
(livetests, helpers, admin tools) belong in the repo tree (scripts/, tests/); code
found under docs/ is misplaced. Relocating it is a final-step MOVE (8), not a copy.reports/; the executing script goes to repo tooling, never .credo/. A leading _
(or similar) on a script name often signals a throwaway / live script rather than a real
test.process/requirements/: the verbatim, append-only requirements log (the
requirements-verbatim skill governs its form).process/handoffs/: a rolling HANDOFF.md (the always-current "read me first" anchor)
and archive/ for older dated states. Historical progress / session logs also go to
archive/. There is NO process/progress/ folder; ongoing progress lives as items in
2_done/.process/reports/: diag / audit / verification / plan / design-record, each with a
kind: frontmatter field; file names lowercase-kebab, keep the date.docs/: stable "how we work here" conventions only (not feature content)..credo/ content is written in the project's working language; the
delivered credo plugin files themselves are English. Item body section names follow the
items model and are written in the project working language.These two interleave; run them together.
docs/ file is either (a) content (stays at its content
location), (b) a process report (copy to reports/), or (c) open work (becomes an item).
A single doc can be partly done (report) AND partly open (item); split it.items/ nor to .credo/docs/.reports/ and READ
it to derive items; it is not consumed or deleted.process/requirements/.items model. One id = one item. Keep existing legacy numbers as
the item id; new items draw the next id from credo-id-next.sh. Frontmatter:
id, title, created, type, ui (no status / marker field - the folder is the status).
Body sections, exactly as in the items model: Requirement (verbatim),
Success Criteria (= DoD), Implemented, Verify (4-valued per layer: not-started /
present / wired-but-behavior-unverified / exercised - failed is a defect outcome, not
one of the four states), History. These are the canonical English names; a project writes them in
its own working language (for example a German project localizes the headings), but the
model and order stay the same.1_todo/2_go. This is an ENTRY gate, enforced at MOVE time (this migration step, any GO
sweep, or credo-item-move.sh), not discovered later at build time - so a non-buildable
item never sits in 2_go. An item may move into 2_go ONLY if ALL of these hold:
clarify_owner: human or missing) needs an
explicit, item-scoped user GO (date + the user as source); agents never self-GO a
human-owned item. An agent-owned item (clarify_owner: agent) may get an agent GO (autonomous run
only) under the agent decision rule (items skill, "Clarify owner and the agent decision rule"). The
-> go History line must cite the GO source, e.g.
-> go 2026-08-04 (GO: user, <short context>) or
-> go 2026-08-04 (GO: agent decision, <reason>).parked/future.1_todo/3_blocked (if GO'd, see the items skill) or parked/hold (external
/ not GO'd).1_clarify (to be clarified WITH the user), never handed to the building
agent to decide.
2_go as one
blocking point. At GO time it has no open decision yet (the decision only arises once the
build has produced the measurement), so it would otherwise slip past G4/G5. Split it at
GO per the split guidance below: keep the buildable measurement criterion (produce the
numbers / the concrete cost-benefit finding) in the item, and file a SEPARATE
user-decision item in 1_clarify, blocked on the measurement until the numbers exist;
only then does the user decide.ls .credo/items/1_todo/2_go/) so no item is
silently skipped. This is a one-shot check at sweep time (a single shell command), NOT a
background process - no ongoing cost.
Anything failing a gate goes to 1_todo/1_clarify (or split: keep the fully-clarified,
gate-passing core in 2_go and file a separate clarify item for the open part).failed / "not started",
wiring-check the real code (search endpoint / class / function / tests). A feature may
already be built under a DIFFERENT task id. If built but behavior unobserved, use
wired-but-behavior-unverified, not failed. This mirrors the items skill.1_todo/1_clarify (clarify when
they come up). Deliberately deferred -> parked/future. parked/hold ONLY for a genuine
external blocker (rare)."${CLAUDE_PLUGIN_ROOT}/scripts/credo-item-move.sh" <id> <target> for status moves - it is atomic, never deletes, refuses the user-only
3_verified target, and carries the case-only-rename guard (step 1 safety). Update the
item History after each move..credo/, update internal
references (ids, links, paths) so nothing breaks. The docs/ originals are untouched, so
references pointing at them stay valid.Run a read-only audit against the target form (the scaffolded tree and the items
model). Prefer delegating this to a fresh reviewer subagent (the audit skill), not the
agent that did the migration - a fresh reviewer catches self-inconsistencies. Check:
credo-init.sh tree;<id>-slug.md for items);status / marker field;id-counter >= the highest id in use (equal in the common case; the helper's scan floor
reconciles it up if it ever falls behind);Fix all findings before step 8.
This step is ALWAYS user-gated. Do it only after all earlier steps (scaffold, classify, items, self-audit) are complete and accepted, and never autonomously.
.credo/, grep the WHOLE repo for its file
name AND path-stem (without extension), across code, docs, conventions, and .credo/,
INCLUDING git-ignored areas (rg --no-ignore) so code references without a .md
extension are not missed..deleted/** with the original path mirrored exactly, and
append a line to the repo's dogma TO-DELETE list. Never hard-delete; final deletion is
the user's manual decision later.scripts/ (same reference-check first)..deleted/ mirror is the primary reversible record; append the log
entry only with the user's explicit OK.notes/,
planning/) in step 6.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub marcel-bich/marcel-bich-claude-marketplace --plugin credo28 skills in this plugin
/auditRead-only quality gate that audits already-built work against its stated requirement and Definition of Done before it is allowed to move to 2_done/. Produces a severity-ranked decision proposal (BLOCKER/MAJOR/MINOR/NIT) with evidence; the judgement never edits, only a recorded post-audit step may fix small findings. Use when an item is claimed complete, before moving anything to 2_done/, when asked to audit or review finished work for completeness against requirements, or when acting as the dedicated post-completion review subagent. This gate is mandatory in every session mode. Not for diagnosing why something is broken (use diag) and not for verifying rendered UI behavior (use verify)./budgetThe single source for all API budget cap and reset rules - how much of the 5-hour and weekly API limits may be spent, when to throttle, pause, wake up, or hibernate, and the commit-identity gate that runs before any commit. Use whenever you are about to start or continue autonomous work, before spawning or stopping subagents, when deciding how large a task chunk to take on, when a limit is near a cap, before a commit, or whenever someone asks "how much budget is left" or "can I keep going". Works standalone (no session skill required) and applies inside subagents too: any agent that spends API budget or commits must apply these rules.
/compact-plusSecure everything the user approved before a context compaction so a later /compact can never lose or alter it. Writes verbatim intent and handoff state to disk and commits plus pushes the tracked work product in the correct repository, then reports whether it is safe to compact. It does NOT run /compact itself - it makes a later compact safe. Run this only when the limit plugin's injected ACTION line names it (session-context fill crossed a configured threshold; in interactive modes only after asking the user once, autonomous mode runs it directly) or when the user invokes it manually. Never self-trigger it proactively - that only wastes tokens. Accepts extra trailing instructions to perform in addition to the securing checklist. A minimal mode (invoke as /compact-plus min) secures only intent plus handoff to disk - no audit, no commit or push - for a quick token-cheap save.
/cross-cutting-checklist-generatorDetect when a concern is scattered across many places in a project (config keys, enums, translations, feature flags, API endpoints, doc references) and auto-generate a project-local checklist so that same concern is never partially updated again. Use whenever you add or change something that also exists in several other spots, or when you edit something that already has a checklist. Runs fully autonomously with no user effort, including inside subagents./diagRead-only root-cause diagnosis for a symptom, bug, failure, or unexpected behavior. Establishes the mechanism at file:line and reads up the facts instead of guessing, before any fix is attempted. Produces a diagnosis report; the fix is always a separate step gated by an explicit GO. Use when something is broken, failing, throwing, or behaving unexpectedly and the cause is not yet proven, or when asked to investigate or find the root cause. Not for judging whether finished work meets its requirement (use audit) and not for confirming rendered UI behavior (use verify)./disableDisable the credo items workflow for the current directory. Use when the user wants to stop credo's workflow here - for example "stop using credo here", "disable credo for this repo", "turn credo off here", "no credo in this directory", "credo hier aus", "credo hier deaktivieren", "credo hier abschalten" - or runs the /credo:disable command. It persists a per-directory declined decision (so the SessionStart onboarding ASK and the workflow text stay silent here across future sessions), records the current session as declined, clears its active session mode, and switches keep-alive autonomy off (same effect as switching to active/passive). Model presets and the shorthand legend stay on. Fully reversible via /credo:enable.
Other plugins' skills for the same job