martin1847/evolab / skills/repo-governance-bootstrap
repo-governance-bootstrap
Verified一次性初始化 AI 协作项目的轻量工程治理骨架。新仓库 / 文档治理初始化时调用(也是 cto-orchestration 接入新项目的第一步)。One-shot governance bootstrap for a new repo.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.9 KB |
| hooks.json | config | 592 B |
| references/PROJECT_AGENT.md | markdown | 7.9 KB |
| references/PR_SELF_CHECK.skeleton.md | markdown | 826 B |
| references/docs-check.shexecutable | script | 7.4 KB |
| references/engineering-gate.conf.example | other | 361 B |
| references/engineering-gate.shexecutable | script | 6.8 KB |
| references/hook-wiring.md | markdown | 2.4 KB |
| references/memory-discipline-hook.pyexecutable | script | 2.7 KB |
| references/memory-discipline-hook.ts | script | 1.5 KB |
| references/pre-commit.shexecutable | script | 1.4 KB |
| references/pre-push.template | other | 3.5 KB |
| references/templates.md | markdown | 14.4 KB |
references/pre-commit.sh
View on GitHub#!/usr/bin/env bash
# Composite project gate installed by repo-governance-bootstrap.
set -u
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || {
printf 'project-gate: BLOCKED — not inside a Git repository\n' >&2
exit 1
}
cd "$ROOT" || exit 1
if [ -f scripts/docs-check.sh ]; then
if ! bash scripts/docs-check.sh .; then
printf '\nproject-gate: BLOCKED — docs/check\n' >&2
printf 'Retry: bash scripts/docs-check.sh .\n' >&2
printf 'Read:\n AGENTS.md § Document governance\n repo-governance-bootstrap/SKILL.md § 治理系统观\n' >&2
exit 1
fi
fi
gate_script=scripts/engineering-gate.sh
gate_config=scripts/engineering-gate.conf
if [ -f "$gate_script" ] && [ -f "$gate_config" ]; then
bash scripts/engineering-gate.sh check || exit $?
bash scripts/engineering-gate.sh test || exit $?
elif [ -f "$gate_script" ] || [ -f "$gate_config" ]; then
printf '\nproject-gate: BLOCKED — engineering/config\n' >&2
if [ ! -f "$gate_script" ]; then
printf 'Failed: missing %s\n' "$gate_script" >&2
else
printf 'Failed: missing %s\n' "$gate_config" >&2
fi
printf 'Fix: restore both engineering gate files via repo-governance-bootstrap\n' >&2
printf 'Retry: bash .githooks/pre-commit\n' >&2
printf 'Read:\n' >&2
printf ' AGENTS.md § Engineering Gate\n' >&2
printf ' agent-backend-standard/references/engineering-interface.md\n' >&2
exit 1
fi
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |