/best-copilot:repo-init-manual-fallbackfrom best-copilot
Fallback stage for repo-init-scan that verifies scaffold files, performs bounded repair, and rewrites best-copilot.md when official init leaves gaps. Fail-closed until required artifacts pass checks.
Ships in best-copilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
BLOCKED result has been returned..github/instructions/project.instructions.md.target-instructions-bootstrap, target-memory-bootstrap, or target-spec-bootstrap cannot be invoked mechanically, read their SKILL.md templates and perform the documented create-only repair inline.inline-templates-reference.md. When a template is not there, read the corresponding bootstrap skill for the full template before writing.best-copilot.md sentinel must be written ONLY after all runtime-required artifacts exist and pass content verification..github/instructions/project.instructions.md inline (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:
pom.xml, build.gradle, package.json, go.mod, etc.) for build system, modules, dependencies.<modules> from root pom.xml, identify main module, find @SpringBootApplication or main().*Security*, *Auth*, *OAuth*, WebSecurityConfig*).application.yml, application.properties, Docker files for runtime requirements.mvnw, gradlew).unknown only for things undetectable without running the application.project.instructions.md with more than 3 "unknown" values for detectable fields is a protocol violation..github/instructions/project.instructions.md but 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.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.
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.mdbest-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.
must.instructions.md contains: ## 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, plus NEEDS_USER_INPUT, BLOCKED, work_mode, task_type, pm_action, fixed-string-before-regex, vscode_askQuestions, Self-evolution, and evolution_signal.skills-index.instructions.md contains bootstrap routing and ## Claude Code Skill Names.CLAUDE.md references all three .github/instructions/ files (when Claude Code compatibility is required).AGENTS.md references .codex/agents/*.toml, and every Codex TOML adapter has the expected name = "<role>" field (when Codex compatibility is required)..github/instructions/project.instructions.md when it already exists and passed the official-init success bar:
unknown gaps.CLAUDE.md, .github/copilot-instructions.md, or AGENTS.md first when repo-init-official created or updated one.README*, package/build files, CI files, app entrypoints, test directories.unknown instead of guessing..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:
pom.xml/build.gradle/package.json for build system, modules, dependencies.<modules>, find main module, find @SpringBootApplication.application.yml, Docker files).unknown..github/instructions/project.instructions.md with: Project Facts, Build and Test Commands, Runtime and Entry Points, Module Boundaries, Known Unknowns, Verification Notes, and Init Status.Init source: manual_fallback|official_init_plus_manual_fallback and a real timestamp.## Init Status contains: Init ready, Required artifacts verified, Bootstrap contract version: 0.8.0, Last full verification, Reentry rule.target-instructions-bootstrap → target-memory-bootstrap → target-spec-bootstrap.best-copilot.md with the exact sentinel.project.instructions.md exists and is not placeholder-heavy, Init Status has version 0.8.0, best-copilot.md matches sentinel, and verified_paths covers the full runtime-required path set.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.
## 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>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub funky-eyes/best-copilot --plugin best-copilot39 skills in this plugin
/brainstormingCompatibility entrypoint for unresolved MEDIUM/LARGE design choices. PM and Technical Architect workflows own the SDD rules; do not load this skill for clear or approved work./change-verificationUse after code or configuration changes to prove the changed behavior with minimal sufficient commands, HTTP/browser checks, or static evidence. DO NOT USE FOR: purely speculative review without a concrete change./context-packet-fastpathUse to prepare a minimal context packet for a delegated subtask or to consume a frozen packet without re-reading unrelated files./core-workflow-contractUse when an agent needs the shared best-copilot contract for source priority, runtime adapters, init gates, work modes, dispatch packets, review, verification, memory, spec, state persistence, or closeout./developer-workflowUse when implementing a frozen subtask, staying inside assigned files, or reviewing Technical Architect-owned code as the Developer./development-branch-closeoutUse after implementation and required verification when PM/coordinator must choose merge, pull request, preserve, discard, or workspace cleanup handling for the current branch.Other plugins' skills for the same job