repo-init-manual-fallback
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use inside repo-init-scan after the official stage whenever scaffold verification, bounded repair, or `best-copilot.md` rewrite 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-officialSkill
- 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
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 3 are distinctive, and 19 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
19
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this stage inside repo-init-scan whenever scaffold verification, bounded repair, or best-copilot.md rewrite is still needed.
- Very specific: line 12
When this stage has just been loaded inside repo-init-scan, the next assistant action must create/repair/verify the required init artifacts …
- Distinctive: line 18
Write persistent state into the target repository, never into the plugin installation/cache directory.
- Very specific: line 21
If target-instructions-bootstrap, target-memory-bootstrap, or target-spec-bootstrap cannot be invoked mechanically, read their SKILL.md …
- Very specific: line 22
Do not hand-write improvised versions of scaffold files.
- Very specific: line 24
PM inline analysis requirement: When creating .github/instructions/project.instructions.md inline (no shell helper), the PM MUST analyze …
- Very specific: line 25
Read the root build file (pom.xml, build.gradle, package.json, go.mod, etc.) for build system, modules, dependencies.
- Very specific: line 27
Search for security/auth files (*Security*, *Auth*, *OAuth*, WebSecurityConfig*).
- Very specific: line 28
Read application.yml, application.properties, Docker files for runtime requirements.
- Very specific: line 40
Before next_task_ready: yes, verify these paths in the target repository:
- Very specific: line 62
Start from the current .github/instructions/project.instructions.md when it already exists and passed the official-init success bar:
- Very specific: line 66
Read CLAUDE.md, .github/copilot-instructions.md, or AGENTS.md first when repo-init-official created or updated one.
- Very specific: line 67
Read README*, package/build files, CI files, app entrypoints, test directories.
- Distinctive: line 70
If the file already exists from the shell helper, read it and enhance any "unknown" fields.
- Distinctive: line 71
If the file does not exist, analyze the project first, then create it.
- Very specific: line 72
Read pom.xml/build.gradle/package.json for build system, modules, dependencies.
- Very specific: line 74
Search for security/auth files, runtime config (application.yml, Docker files).
- Very specific: line 76
Create or repair .github/instructions/project.instructions.md with: Project Facts, Build and Test Commands, Runtime and Entry Points, …
- Very specific: line 78
Ensure ## Init Status contains: Init ready, Required artifacts verified, Bootstrap contract version: 0.8.0, Last full verification, Reentry …
- Very specific: line 82
After all other artifacts and content checks pass, write best-copilot.md with the exact sentinel.
- Very specific: line 83
Verify: project.instructions.md exists and is not placeholder-heavy, Init Status has version 0.8.0, best-copilot.md matches sentinel, and …
- Very specific: line 87
When the shell helper and bootstrap skills are unavailable, read inline-templates-reference.md in this skill directory for the canonical …
≈ “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 Manual Fallback
Use this stage inside repo-init-scan whenever scaffold verification, bounded repair, or best-copilot.md rewrite is still needed. After official init succeeds, this stage still owns the final scaffold verification barrier and sentinel rewrite.
Immediate Execution Rule
When this stage has just been loaded inside repo-init-scan, the next assistant action must create/repair/verify the required init artifacts or return BLOCKED, then emit ## Repo Init Manual Fallback. Do not stop at Skill(...repo-init-manual-fallback...) Successfully loaded, and do not inspect business source except the bounded evidence allowed below.
Boundary
- This stage is fail-closed. Do not continue to requirements analysis, planning, implementation, or security rewrites until the required files have been created or a
BLOCKEDresult has been returned. - Reading package/build files is allowed only as bounded evidence for creating
.github/instructions/project.instructions.md. - Write persistent state into the target repository, never into the plugin installation/cache directory.
- Loading this skill or the bootstrap skills is not enough. Success requires actual create/repair operations followed by path and content checks on disk.
- In shell-capable runtimes, first run the bundled deterministic helper when its path is discoverable. If it cannot be located, perform the documented create-or-repair fallback inline instead of blocking.
- If
target-instructions-bootstrap,target-memory-bootstrap, ortarget-spec-bootstrapcannot be invoked mechanically, read theirSKILL.mdtemplates and perform the documented create-only repair inline. - Do not hand-write improvised versions of scaffold files. When creating files inline (no shell helper), use the exact template content from
inline-templates-reference.md. When a template is not there, read the corresponding bootstrap skill for the full template before writing. - The
best-copilot.mdsentinel must be written ONLY after all runtime-required artifacts exist and pass content verification. - PM inline analysis requirement: When creating
.github/instructions/project.instructions.mdinline (no shell helper), the PM MUST analyze the target repository before writing. Do NOT write "unknown" for fields that can be determined by reading the repository:- Read the root build file (
pom.xml,build.gradle,package.json,go.mod, etc.) for build system, modules, dependencies. - For Maven: parse
<modules>from root pom.xml, identify main module, find@SpringBootApplicationormain(). - Search for security/auth files (
*Security*,*Auth*,*OAuth*,WebSecurityConfig*). - Read
application.yml,application.properties, Docker files for runtime requirements. - Infer build/test commands from build file and wrapper scripts (
mvnw,gradlew). - Record genuine
unknownonly for things undetectable without running the application.
- A
project.instructions.mdwith more than 3 "unknown" values for detectable fields is a protocol violation.
- Read the root build file (
- PM post-script enhancement: When the shell helper creates
.github/instructions/project.instructions.mdbut the file contains "unknown" for detectable fields, the PM MUST read the file, analyze the target repository, and update those fields with real data. Do not accept shell-script "unknown" for fields determinable by reading source files.
Sentinel Ownership
This skill owns constructing target-root best-copilot.md. The companion repo-init-gate skill owns validating it, and repo-init-scan owns orchestrating when this stage may write it.
Required First-Use Artifacts
Before next_task_ready: yes, verify these paths in the target repository:
.github/instructions/project.instructions.md.github/instructions/must.instructions.md.github/instructions/skills-index.instructions.mdCLAUDE.md(when Claude Code compatibility is required)AGENTS.md(when Codex compatibility is required).codex/agents/senior-project-expert.toml,.codex/agents/technical-architect.toml,.codex/agents/developer.toml,.codex/agents/frontend-designer.toml,.codex/agents/quality-assurance-expert.toml,.codex/agents/security-reviewer.toml,.codex/agents/specification-writer.toml,.codex/agents/root-cause-fixer.toml(when Codex compatibility is required)memories/README.md,memories/repo/INDEX.md,memories/repo/current-workstreams.md,memories/repo/project-state.md,memories/repo/workflow-rules.md,memories/repo/decisions.md,memories/repo/logs/README.md,memories/repo/archive/deprecated-decisions.mdspec/INDEX.md,spec/templates/requirements-template.md,spec/templates/design-template.md,spec/templates/tasks-template.md
best-copilot.md is the verified-init sentinel for contract version 0.8.0. Must be written only after the other runtime-required artifacts and content checks pass. The canonical write content is the exact 3-line YAML frontmatter block -- no headings, descriptions, or dates. Repeat-request readers use only the frontmatter version for the cheap skip decision.
Required Content Checks
must.instructions.mdcontains:## Request Flow,## Per-Request Hard Gates,### PM Native Ask Trigger Gate,## Shared State Contracts,## Search Precision,## Command Output Budget,## Memory And Spec,## Agents and Dispatch,## Implementation and Verification, plusNEEDS_USER_INPUT,BLOCKED,work_mode,task_type,pm_action,fixed-string-before-regex,vscode_askQuestions,Self-evolution, andevolution_signal.skills-index.instructions.mdcontains bootstrap routing and## Claude Code Skill Names.CLAUDE.mdreferences all three.github/instructions/files (when Claude Code compatibility is required).AGENTS.mdreferences.codex/agents/*.toml, and every Codex TOML adapter has the expectedname = "<role>"field (when Codex compatibility is required).
Steps
- Start from the current
.github/instructions/project.instructions.mdwhen it already exists and passed the official-init success bar:- Reuse that file as the primary fact packet.
- Scan only the missing fact categories, missing scaffold surfaces, or unresolved
unknowngaps.
- Otherwise do a bounded manual scan:
- Read
CLAUDE.md,.github/copilot-instructions.md, orAGENTS.mdfirst whenrepo-init-officialcreated or updated one. - Read
README*, package/build files, CI files, app entrypoints, test directories. - Record unresolved facts as
unknowninstead of guessing.
- Read
- PM must analyze the project to produce real project facts in
.github/instructions/project.instructions.md. Skip this step only if the file already came from official init (step 1) and has no more than 3 "unknown" fields. Otherwise:- If the file already exists from the shell helper, read it and enhance any "unknown" fields.
- If the file does not exist, analyze the project first, then create it.
- Read
pom.xml/build.gradle/package.jsonfor build system, modules, dependencies. - For Maven: parse
<modules>, find main module, find@SpringBootApplication. - Search for security/auth files, runtime config (
application.yml, Docker files). - Infer build/test commands. Only mark genuinely undetectable items as
unknown.
- Create or repair
.github/instructions/project.instructions.mdwith:Project Facts,Build and Test Commands,Runtime and Entry Points,Module Boundaries,Known Unknowns,Verification Notes, andInit Status. - Replace markers with
Init source: manual_fallback|official_init_plus_manual_fallbackand a real timestamp. - Ensure
## Init Statuscontains:Init ready,Required artifacts verified,Bootstrap contract version: 0.8.0,Last full verification,Reentry rule. - Initialize missing scaffolds: shell helper →
target-instructions-bootstrap→target-memory-bootstrap→target-spec-bootstrap. - Re-check the required artifact paths on disk.
- Re-check the required instruction content.
- After all other artifacts and content checks pass, write
best-copilot.mdwith the exact sentinel. - Verify:
project.instructions.mdexists and is not placeholder-heavy,Init Statushas version0.8.0,best-copilot.mdmatches sentinel, andverified_pathscovers the full runtime-required path set.
Inline Fallback Templates
When the shell helper and bootstrap skills are unavailable, read inline-templates-reference.md in this skill directory for the canonical templates. Do NOT improvise content.
Output
## Repo Init Manual Fallback
- status: success|blocked
- required_artifacts_verified: yes|no
- sentinel_written: yes|no
- next_task_ready: yes|no
- verified_paths: <every required artifact checked on disk, plus best-copilot.md>
- missing_paths: none|<paths not present or not content-valid>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.

