Skip to content
Agentmart
Submit a tool

repo-init-gate

Use before repo-init-scan to cheaply decide whether a target repository already satisfies the current best-copilot init contract by reading only the root…

Skill by funky-eyes

IndexedApache-2.0★ 12
Write a review

Chalk Labs

Need help deploying repo-init-gate?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/funky-eyes-repo-init-gate

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use before repo-init-scan to cheaply decide whether a target repository already satisfies the current best-copilot init contract by reading only the root `best-copilot.md` sentinel.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/repo-init-gate

What's inside

Skill name
repo-init-gate
Description
Use before repo-init-scan to cheaply decide whether a target repository already satisfies the current best-copilot init contract by reading only the root `best-copilot.md` sentinel.
License
Apache-2.0
Instructions
52 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • run-preflight.sh · scripts/

SKILL.md (first lines)

# Repo Init Gate

Use this tiny skill before loading `repo-init-scan`. It is the repeat-request fast path.

## Immediate Execution Rule

When loaded, the next assistant action must be only this gate.

Preferred shell-capable path: run the bundled preflight helper from the target root when it is discoverable:

```bash
<best-copilot-skills-dir>/repo-init-gate/scripts/run-preflight.sh "$PWD" claude
```

For an installed Claude Code plugin, resolve the helper from `CLAUDE_SKILL_DIR` when present, or from the active plugin `skills/` directory. The helper reads only the target root `best-copilot.md` on the fast path. If the sentinel frontmatter version is not current, it immediately delegates to `repo-init-scan/scripts/bootstrap-after-gate-failure.sh`, which owns official init, manual fallback, artifact verification, and the final `## Init Summary`.

If the helper cannot be located or shell execution is unavailable, execute the inline gate exactly:

1. Read only the target root `best-copilot.md`, or determine that it is missing or unreadable.
2. Parse only its YAML frontmatter and compare `version` to the current contract version below.
3. Emit the `## Repo Init Gate` output block below.
4. If the frontmatter version is current, skip `repo-init-scan`; otherwise run `repo-init-scan` or its single-command bootstrap helper before any business-source read/search.

Forbidden before this block: search, grep, glob, source reads, project structure exploration, code intelligence, planning, dispatch, implementation summaries, scaffold writes, or reading `.github/instructions/**`, `memories/**`, `spec/**`, `AGENTS.md`, or `CLAUDE.md`.

## Contract

Canonical `best-copilot.md` content written by init:

```md
---
version: "0.8.0"
---
```

- Current YAML frontmatter `version: "0.8.0"`: `ready` + `skip_repo_init_scan`.
- Missing, unreadable, invalid frontmatter, missing version, or version mismatch: report the corresponding gate result and run `repo-init-scan`.
- Extra content after a current frontmatter block is not a reason to run scan on repeat requests. Writers should still keep the canonical three-line sentinel when creating or repairing the file.
- Explicit reinitialize/repair requests bypass this gate and run `repo-init-scan`.
- This gate is read-only; `repo-init-scan` owns sentinel creation/repair.
- If skill invocation fails, run the preflight helper when available. Otherwise do the same single-file read inline and report `HARNESS_DEGRADED skill_invocation_unavailable`.

## Output

```markdown
## Repo Init Gate
- gate_result: ready|needs_init|version_mismatch|invalid_sentinel
- next_action: skip_repo_init_scan|run_repo_init_scan
- evidence: target_root_best_copilot_md=present|missing|unreadable, observed_version=<version-or-none>
```

From funky-eyes/best-copilot, Apache-2.0.

More from funky-eyes/best-copilot

Signals

Stars
12
Forks
1
Open issues
0
Last commit (this folder)
Aug 4, 2026 (2 months ago)
Last release
Aug 3, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from funky-eyes

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get repo-init-gate running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying repo-init-gate?

CallGet help
Cite this page

repo-init-gate skill. Agent Mart. https://agentmart.dev/skills/funky-eyes-repo-init-gate (last updated 2026-10-24)