agentleFS
phmatrayphmatray/ai-migration-kit/skills/init/SKILL.md

init

Skill4 starsChanged 59 days agoMITView on GitHub

Make a repository ready for the issue/PR lifecycle skills in one command — record its facts in the committed profile (`.claude/skills/repo-profile.md`: commit identity, build/test commands, labels, merge style, conflict hot-spots), converge its labels, issue forms, settings, topics and Pages source from a manifest, then refresh the profile. Use for a new repo or one that drifted: "init this repo for the kit", "set up the repo profile", "set up the labels", "configure this repository the way the kit expects", « initialise ce repo pour les skills », « configure les labels du repo ». `--plan` writes nothing on GitHub; `--profile-only` only reads or regenerates the profile. Does NOT write a CLAUDE.md, file issues, implement code, or merge PRs.

137 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 3 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 124 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After an apply that followed a plan exit 1 (drift — apply itself exits 0 either way), re-run step 1 on its generation path: the label axes …

    line 98
  2. Very specific:

    Run hands-off. show and plan are reads — no ceremony.

    line 104
  3. Very specific:

    Every <!-- TODO: … --> left in the profile goes in Assumed · skipped · unverified, by name, and so does whether --prune ran.

    line 133

“Common” is measured: kept by at least 6 in 10 of the 124 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Make a repository ready for the lifecycle skills

create-issue, implement-issue, merge-pr and auto-dev are generic workflows wrapped around a thin layer of repo-specific facts. This skill does the whole setup story in one pass: it records those facts in a committed profile, converges the configuration they describe (labels, issue forms, settings, topics, Pages source) from a declarative manifest, and refreshes the profile so it reports what now exists. Decision record: ADR 0018.

The profile is data, not a skill (ADR 0001): the lifecycle skills read it at their Step 1, and only reach for this skill when it is missing.

Three paths

InvocationDoesWrites on GitHub
/tagout:initprofile → plan → apply when it found drift → refresh the profileyes — labels, forms, settings, topics, Pages
/tagout:init --planprofile → plan; prints the driftno
/tagout:init --profile-onlyshow the profile, or generate it when missing (add --refresh to regenerate)no

Pick the path from the request, not only from the flag. A request to read, show or regenerate the profile takes --profile-only; one to check or list drift takes --plan. apply runs only on a request to set up, configure or converge the repository, or on a bare /tagout:init — the writer never fires from a read-only question (ADR 0018).

Do this

Two bundled scripts do the deterministic work; run them from anywhere in the target repo (each anchors to the git root). <skill-dir> is this skill's base directory — given when the skill loads.

1. The profile

bash "<skill-dir>/scripts/repo-profile.sh" show
  • It printed the profile (and no --refresh was asked) → keep it; relay the headline values (repo slug, commit identity, build/test commands, integration style).
  • It printed NO_PROFILE (exit 3), or --refresh was asked → the generation path (on --plan, which writes nothing locally, say the profile is missing instead and go on to step 2). Read references/generating.md and follow it: run repo-profile.sh detect, fill references/profile-template.md from the facts it emits, write .claude/skills/repo-profile.md, and list every TODO you left.
  • Exit 4 → not inside a git repository: say so and stop.

On --profile-only, stop here and recap.

2. The manifest

bash "<skill-dir>/scripts/repo-setup.sh" plan

plan writes nothing. On --plan, show the delta and stop. Otherwise, when it found drift, converge:

bash "<skill-dir>/scripts/repo-setup.sh" apply

The manifest is the repo's own .github/repo-setup.yml when it has one, else the kit's templates/repo-setup.yml; --manifest <path> overrides both. The rules apply follows (additive, pruneKeep, never clobber a form, placeholders reported !TODO, topics additive, Pages never disabled) are spelled out in references/desired-state.md — relay them before a first run against a repo that already has labels.

ExitMeaningWhat to do
0convergedSay so.
1plan found driftShow the delta, then apply — except a !TODO line: apply never creates a placeholder, so fill it into the manifest instead.
2bad usage, or an unreadable manifestFix the manifest; never partially apply.
3a surface was refusedRelay which one and why — the rest did land. Carry on to step 3.
4not inside a git repositorySay so and stop.

3. Refresh the profile

After an apply that followed a plan exit 1 (drift — apply itself exits 0 either way), re-run step 1 on its generation path: the label axes and issue forms the profile reported as missing exist now, so the profile must record them before a lifecycle skill reads it. This step is part of the run, not advice to the user.

Autonomy contract

Run hands-off. show and plan are reads — no ceremony. The generation path is best-effort inference: fill what detect proves and write a marked <!-- TODO: … --> for the rest rather than inventing a value. Before apply, get a yes only when the repo is not the user's own or the run includes --prune. Never invent a taxonomy: a missing axis is a manifest edit and a re-run, never a hand-made gh label create. A refused surface is reported and the run moves on. Stop only for a real blocker: not inside a git repo, or gh unauthenticated when the request needs GitHub (tell the user to run ! gh auth login -h github.com).

Inputs

  • --plan — profile, then plan; nothing is written on GitHub.
  • --profile-only — the profile alone; with --refresh, regenerate it even if one exists.
  • --prune — passed to apply: delete labels the manifest does not declare (never the pruneKeep ones). Never implied.
  • --manifest <path> — a manifest other than the repo's own or the kit's default.
  • A path argument — a repo other than the current directory, passed as the scripts' [dir].

Recap

Close with the shared recap shape — ../_shared/recap.md. It owns the four blocks (verdict · What happened · Artifacts · Assumed · skipped · unverified, where None is a required answer rather than an omission) and the Next line, which is read off this skill's row in that file's hand-off table instead of being decided again here. Everything below is only what init adds on top of them.

  • Say which path ran (/tagout:init, --plan, --profile-only) and whether the profile was read back or generated — they carry very different confidence.
  • Name each GitHub surface separately — labels, issue forms, settings, topics, Pages — and whether it converged, was already converged, or was refused (and by what).
  • Every <!-- TODO: … --> left in the profile goes in Assumed · skipped · unverified, by name, and so does whether --prune ran.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.