repo-init-official
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use inside repo-init-scan to try a target-local `init` skill, Claude `/init`, or `copilot init`, normalize official init output into `.github/instructions/project.instructions.md`, and decide whether manual fallback is still needed.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
When this stage has just been loaded inside repo-init-scan, the next assistant action must attempt the official initializer or report …
- Very specific: line 18
Prefer a directly invokable bare runtime /init command when the active session exposes one.
- Very specific: line 20
Do not treat chat output alone as success.
- Very specific: line 24
If official init runs but only returns chat text without a verified facts file, fails, times out, or reports missing authentication, report …
- Very specific: line 25
If official init is unavailable, does not write the file, or leaves those fact categories incomplete, hand off to repo-init-manual-fallback.
- Very specific: line 39
When a target-local init skill is present but does not write a recognized artifact, the helper may continue to the runtime command fallback.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo Init Official
Immediate Execution Rule
When this stage has just been loaded inside repo-init-scan, the next assistant action must attempt the official initializer or report official_init_unavailable, then emit ## Repo Init Official. Do not stop at Skill(...repo-init-official...) Successfully loaded, and do not inspect business source before this stage returns.
Contract
- This is the best-copilot official-init stage. Loading
/best-copilot:repo-init-officialorSkill(best-copilot:repo-init-official)makes this stage's instructions available; it is not the same thing as running the runtime's built-in/init. - Try a target-local
initskill first when it is discoverable and the active runtime can invoke skills non-interactively. This meansskills/init/SKILL.mdfor Claude Code and Copilot plugin directories, plus.claude/skills/init/SKILL.mdfor Claude Code. For Copilot CLI,skills/init/SKILL.mdis mechanically invokable only when the target root is a plugin directory withplugin.json; otherwise reportlocal_init_skill_status=uninvokable_missing_plugin_jsonand fall back tocopilot init. Invoke successful candidates from the target root through the bundled official helper, recordattempted=target_local_init_skill, and treat them as successful only when a recognized init artifact is written on disk. - In Copilot CLI or other shell-capable runtimes, if no target-local
initskill succeeds andcopilot initexists, runcopilot initautomatically before manual fallback throughrepo-init-official/scripts/run-copilot-native-init.sh. This is the normal command fallback for Copilot. - In Claude Code, if no target-local
initskill succeeds, attempt Claude Code's built-in/initcommand automatically through the bundled helper script before manual fallback when the helper path is discoverable fromCLAUDE_SKILL_DIRor the active plugin directory. This is the native command shown by Claude as "Initialize a new CLAUDE.md file with codebase documentation"; it is not a best-copilot skill. The helper uses a boundedclaude --bare --permission-mode acceptEdits -p "/init"attempt so the native Claude initializer can write the targetCLAUDE.mdwithout loading this plugin recursively.BEST_COPILOT_CLAUDE_NATIVE_INIT_TIMEOUT_SECONDSmay shorten the default 45-second timeout for smoke tests. If the helper cannot be located, reportofficial_init_unavailableand continue to manual fallback instead of blocking solely on helper discovery. - Prefer a directly invokable bare runtime
/initcommand when the active session exposes one. This bare/initis distinct from best-copilot plugin skills such as/repo-init-officialor/best-copilot:repo-init-official. - Normalize useful output into the target
.github/instructions/project.instructions.mdwhen the official initializer produces enough facts directly. Recognized helper artifacts such as targetCLAUDE.md,.github/copilot-instructions.md, andAGENTS.mdare also successful official evidence;repo-init-manual-fallbackmust then preserve and normalize their useful facts into.github/instructions/project.instructions.md. - Do not treat chat output alone as success. Either the facts file must exist on disk with real facts or explicit
unknowngaps, or the helper must have written a recognized artifact that the manual fallback can normalize. - In Claude Code, do not report
official_init_unavailablemerely because the assistant cannot call a UI slash command directly. First try the helper script. If the helper succeeds and creates.github/instructions/project.instructions.md,CLAUDE.md,AGENTS.md, or another recognized init artifact, reportsuccess. - In Copilot CLI, do not report
official_init_unavailablemerely because the assistant loaded this skill text. First try the target-localinitskill when present, thencopilot initthrough the bundled helper when the shell command is available. If the helper succeeds and creates.github/instructions/project.instructions.md,.github/copilot-instructions.md,AGENTS.md, or another recognized init artifact, reportsuccess. - Report
official_init_unavailableonly when no official initializer is available or known in the current runtime, nocopilot initcommand can be run, and no prior/init/copilot initoutput or artifacts are available to normalize. - If official init runs but only returns chat text without a verified facts file, fails, times out, or reports missing authentication, report
official_init_no_write,official_init_incomplete, orofficial_init_unavailableand continue torepo-init-manual-fallback. Do not stop after loading this skill. - If official init is unavailable, does not write the file, or leaves those fact categories incomplete, hand off to
repo-init-manual-fallback. - This stage does not certify scaffold completeness and does not write
best-copilot.md; those remain owned byrepo-init-manual-fallback.
Output
## Repo Init Official
- status: success|official_init_unavailable|official_init_no_write|official_init_incomplete
- attempted: target_local_init_skill|copilot_init|claude_native_slash_init|bare_init|none
- native_command: /init when attempted=claude_native_slash_init
- native_command: copilot init when attempted=copilot_init
- artifacts: <files created or normalized, such as CLAUDE.md, .github/copilot-instructions.md, and .github/instructions/project.instructions.md>When a target-local init skill is present but does not write a recognized artifact, the helper may continue to the runtime command fallback. In that case attempted may contain a comma-separated attempt chain such as target_local_init_skill,claude_native_slash_init.
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
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.

