gsd-graphify-brownfield-bootstrap

$npx mdskill add seaworld008/Commonly-used-high-value-skills/gsd-graphify-brownfield-bootstrap

Bootstrap GSD and graphify for an existing brownfield repo.

  • Wires local GSD runtime and graphify context for brownfield repos.
  • Depends on GSD SDK, graphify, and existing repo structure.
  • Detects current state and seeds .planning/ context without interactive init.
  • Outputs a canonical workflow for runtime setup, graph refresh, and planning.

SKILL.md

.github/skills/gsd-graphify-brownfield-bootstrapView on GitHub ↗
---
name: gsd-graphify-brownfield-bootstrap
description: 'Bootstrap GSD + graphify for an existing brownfield repo when the project needs a single canonical workflow for local runtime setup, graph refresh, and manually seeded .planning/ context without depending on interactive GSD init.'
zh_description: "用于gsd、Graphify、brownfield、启动,支持工程协作、自动化验证和交付闭环。"
version: "2.1.0"
author: Hermes Agent
source: "in-house"
source_url: "https://github.com/seaworld008/Commonly-used-high-value-skills"
license: MIT
tags: '["automation", "workflow", "gsd", "graphify", "brownfield", "planning", "architecture", "codex"]'
created_at: "2026-04-16"
updated_at: "2026-04-24"
quality: 5
complexity: "intermediate"
metadata:
  hermes:
    tags: [gsd, graphify, brownfield, codex, planning, architecture, workflow]
    canonical_replacement_for:
      - brownfield-gsd-graphify-bootstrap
---

# GSD + graphify Brownfield Bootstrap

Use this skill when an existing repo needs one canonical brownfield bootstrap flow for:
- local GSD runtime wiring
- graphify context + smart refresh
- manually seeded `.planning/` context
- current-state / docs / entrypoint convergence

This skill now replaces the older duplicate `brownfield-gsd-graphify-bootstrap` so the brownfield story stays single-track.

## When to Use

Use this skill when the user asks to:
- add GSD + graphify to an existing repo
- bootstrap brownfield planning without trusting `gsd-sdk init`
- standardize one reusable brownfield onboarding flow for teammates
- converge README / docs / AGENTS around the repo's current architecture before major refactors

Do not use this skill for greenfield repos or for upstream Hermes / graphify / GSD development.

## Outcome

A successful bootstrap usually leaves the repo with:
1. local Codex runtime files in `./.codex/`
2. `scripts/graphify-sync.sh` for cheap graph refresh
3. graphify outputs in `graphify-out/`
4. manually seeded `.planning/` brownfield baseline
5. workflow guidance in `AGENTS.md`, `README.md`, and docs
6. an initial current-state / entrypoint / roadmap baseline that future agents can extend

## Standard Install Story

Prefer the same baseline as the main Hermes + graphify + GSD workflow skills:

```bash
command -v hermes
hermes --version

# Baseline checked 2026-04-24: graphifyy 0.5.0.
PY_BIN="${PYTHON_BIN:-$HOME/.hermes/hermes-agent/venv/bin/python3}"
[ -x "$PY_BIN" ] || PY_BIN="$(command -v python3)"
if "$PY_BIN" -c 'import sys; print(int(sys.prefix != sys.base_prefix))' 2>/dev/null | grep -q '^1$'; then
  "$PY_BIN" -m pip install -U "graphifyy>=0.5.0"
else
  "$PY_BIN" -m pip install --user -U "graphifyy>=0.5.0"
fi
~/.local/bin/graphify install --platform hermes || graphify install --platform hermes
npx -y get-shit-done-cc@latest --codex --global --sdk
```

Why this is now the default:
- it matches the teammate-shareable non-intrusive workflow
- it reduces drift between brownfield bootstrap and project-integration skills
- it avoids forcing every user to clone and build GSD from source just to get started

## Source Install Is a Fallback, Not the Default

Only prefer a source checkout of GSD when one of these is true:
- you are debugging or contributing to GSD itself
- the upstream package entrypoint is temporarily broken
- you need to inspect installer behavior before trusting it in a sensitive environment

Fallback example:

```bash
git clone https://github.com/gsd-build/get-shit-done /data/ai-coding/get-shit-done
node /data/ai-coding/get-shit-done/bin/install.js --codex --local
cd /data/ai-coding/get-shit-done/sdk
npm install
npm run build
npm install -g .
```

Keep this explicitly labeled as fallback so teammates are not forced into a heavier path.

## Brownfield Bootstrap Steps

### 1. Install local Codex runtime in the target repo

From the target project root:

```bash
npx -y get-shit-done-cc@latest --codex --local
```

If that entrypoint is unavailable, use the source-install fallback above.

Verify:

```bash
find ./.codex -maxdepth 3 -type f | sort | sed -n '1,120p'
```

### 2. Confirm graphify outputs and add smart refresh

Required outputs are:
- `graphify-out/graph.json`
- `graphify-out/GRAPH_REPORT.md`

Important rule:
- do **not** require `graphify-out/manifest.json`
- newer graphify versions may not emit it
- treat manifest as optional diagnostic output only
- graphify 0.5+ may create transient `.graphify_chunk_*.json` files during Codex semantic extraction; do not clean those before collection finishes
- if the brownfield corpus includes video/audio, install `graphifyy[video]` or surface manual transcription guidance before expecting a complete semantic graph

The repo-local `scripts/graphify-sync.sh` should support:
- `status`
- `smart`
- `force`
- `serve`

Recommended `smart` behavior:
- if graph outputs are missing, run `graphify update .`
- if code files changed, run code-only rebuild via `graphify.watch._rebuild_code(Path('.'))`
- if only docs/media changed, skip automatic rebuild and print manual full-refresh guidance

### 3. Add or verify repo docs and workflow contract

Update or create:
- `AGENTS.md`
- `README.md`
- `docs/current-state.md`
- `docs/index.md`
- `docs/entrypoints.md`
- optional `docs/gsd-graphify-workflow.md`

Converge them around current facts:
- authoritative frontend and backend entrypoints
- current mainline architecture path
- what is legacy / experimental / archived
- the standard GSD + graphify operating loop

### 4. Manually seed `.planning/` when interactive init is not trustworthy

If the repo is complex, credentials are missing, or the current architecture already has a mature analysis baseline, do **not** block on `gsd-sdk init`.

Create:

```text
.planning/
  PROJECT.md
  REQUIREMENTS.md
  task-board.json
  ROADMAP.md
  STATE.md
  config.json
  codebase/CODEBASE-MAP.md
  research/ITERATION-LOOP.md
```

Source material should come from real repo facts:
- `graphify-out/GRAPH_REPORT.md`
- current README / docs / AGENTS
- codebase inspection results
- current architectural conclusions

Practical `config.json` defaults:
- `mode: yolo`
- `discuss_mode: assumptions`
- `planning.commit_docs: false`
- keep destructive / external-service confirmations enabled

Recommended `task-board.json` role:
- act as the machine-readable task selector for autonomous continuation
- map each major brownfield step to explicit task ids, dependencies, priorities, and acceptance notes
- stay aligned with `REQUIREMENTS.md`, `ROADMAP.md`, and `STATE.md`

### 5. Optional cleanup of legacy entrypoints

For repos with multiple old entrypoints or migration leftovers:
- document authoritative entrypoints first
- archive low-risk legacy entrypoints before deleting anything
- do not start by deleting the most ambiguous historical mainline files

This keeps the brownfield migration reversible while the new workflow settles in.

## Recommended Phase 0

A good first brownfield phase is usually:
- `00-01` planning bootstrap
- `00-02` docs/current-state alignment
- `00-03` workflow verification

Only after that should the repo move into larger cleanup or architecture-convergence phases.

## Verification Checklist

Run and inspect these before claiming success:

```bash
find ./.codex -maxdepth 3 -type f | sort | sed -n '1,120p'
gsd-sdk --version
gsd-sdk --help
./scripts/graphify-sync.sh status
./scripts/graphify-sync.sh smart
find .planning -maxdepth 3 -type f | sort
```

Also verify:
- `graphify-out/GRAPH_REPORT.md` exists
- `graphify-out/graph.json` exists
- README / docs / AGENTS agree on current facts
- `.planning/ROADMAP.md` and `.planning/STATE.md` point at the same active phase
- if legacy entrypoints were archived, their replacements are clearly documented

## Common Pitfalls

1. Treating source-install as the default teammate path
- prefer the standard upstream entrypoints first

2. Requiring `manifest.json`
- manifest is optional in current graphify versions

3. Letting `gsd-sdk init` invent a roadmap for a complex repo with weak context
- manually seed `.planning/` when needed

4. Updating scripts but not README / docs / AGENTS
- brownfield repos need documentation convergence, not only tool installation

5. Deleting historical entrypoints before documenting the current mainline
- convergence first, destructive cleanup second

## Standard Operating Loop After Bootstrap

1. `./scripts/graphify-sync.sh smart`
2. Read `graphify-out/GRAPH_REPORT.md`
3. Read `.planning/STATE.md` and `.planning/ROADMAP.md`
4. Use GSD phase / plan / execute workflow
5. Implement or clean up
6. Re-run `./scripts/graphify-sync.sh smart`
7. Update planning/docs if the phase meaning changed

## Canonical Skill Note

This is the only brownfield bootstrap skill that should remain in the shared workflow set.
If you find references to `brownfield-gsd-graphify-bootstrap`, update them to this skill and remove the duplicate.

More from seaworld008/Commonly-used-high-value-skills

SkillDescription
agent-hubMulti-agent collaboration plugin that spawns N parallel subagents competing on the same task via git worktree isolation. Agents work independently, results are evaluated by metric or LLM judge, and the best branch is merged. Use when: user wants multiple approaches tried in parallel — code optimization, content variation, research exploration, or any task that benefits from parallel competition. Requires: a git repo.
andrej-karpathy-skillsKarpathy-inspired coding discipline for AI agents: think before coding, keep changes simple, edit surgically, and define verifiable success criteria before implementation.
arenaSpecialist orchestrating codex exec / Antigravity CLI through dual paradigms — COMPETE (multi-variant comparison, select best) and COLLABORATE (decompose tasks across engines, integrate). Supports Solo/Team/Quick execution modes.
azure-kubernetesPlan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters. Covers Day-0 checklist, SKU selection (Automatic vs Standard), networking options (private API server, Azure CNI Overlay, egress configuration), security, and operations (autoscaling, upgrade strategy, cost analysis). WHEN: create AKS environment, provision AKS, enable AKS observability, design AKS networking, choose AKS SKU, secure AKS, optimize AKS, AKS spot nodes, AKS cluster-autoscaler, rightsize AKS pod, pod rightsizing, over-provisioned AKS pod, pod resource requests and limits, Vertical Pod Autoscaler, VPA recommendations.
azure-kubernetes-automatic-readinessAssess Kubernetes workloads and cluster configuration for AKS Automatic compatibility. Identifies incompatibilities, generates fixes, and guides migration from AKS Standard to AKS Automatic. WHEN: migrate to AKS Automatic, check AKS Automatic readiness, validate manifests for Automatic, assess cluster for Automatic compatibility, fix deployment for Automatic compatibility, identify AKS Automatic migration blockers, is my cluster ready for AKS Automatic.
cc-devops-skillsSRE, DevOps, Kubernetes, CI/CD, PromQL, Terraform, Docker, and incident operations playbook for building reliable delivery and operations workflows.
chatgpt-appsBuild, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.
clayAI 3D model generation agent. Generates text-to-3D and image-to-3D code (Python/JS/OpenSCAD) using Meshy, Tripo, Hunyuan3D, Rodin, Sloyd, and Stability APIs. Handles game pipeline integration, LOD, retopology, UV, and QC validation.
codeql-security-scanner用于通过 CodeQL 执行语义代码扫描、安全查询、自定义规则、SARIF 报告和 GitHub Code Scanning 集成。
complyRegulatory compliance and audit agent. Maps business regulatory requirements (SOC2/PCI-DSS/HIPAA/ISO 27001), checks control implementations, designs audit trails, and implements Policy as Code. Use when compliance auditing is needed.