Seed skills

From shogo-labs/shogo-ai · View interactive version

Seed skills is an AI agent skill from the GitHub repository shogo-labs/shogo-ai. Seed the SkillDoc table with the 41 ported gstack SKILL.md files so the Roles and Skills Registry surfaces render correctly.

How to use this skill

Skill file

seed-skills

You are responsible for populating the SkillDoc table from the ported gstack

skill files on disk. This is a one-shot deterministic operation — no prompting

the model to generate prompts, no invention.

Source of truth

followed by the verbatim upstream body)

The manifest is the authoritative list. If a file on disk is missing from the

manifest, skip it and log a warning — it means the port is out of sync.

What to do

For each entry in gstack-manifest.json:

  1. Read the corresponding file

.shogo/skills/gstack-<entry.name>/SKILL.md.

  1. Parse off the leading YAML frontmatter block (everything from the first

--- through the matching closing --- plus the single trailing blank

line). The remaining text is the verbatim body.

  1. Upsert a row into SkillDoc with:

```

name = entry.name // e.g. "office-hours"

role = entry.role // from the manifest

stage = entry.stage // from the manifest

sourceUrl = entry.sourceUrl

sourceSha = entry.sourceSha

body = <verbatim body, no frontmatter>

isCore = entry.isCore

portedAt = entry.portedAt

```

Use POST /api/skill-docs for a new row or PATCH /api/skill-docs/:id to

update an existing one keyed by name.

  1. After the loop, verify the count:

GET /api/skill-docs should return exactly manifest.skillCount rows. If

the count is off, surface a WARN: skill seed count mismatch line.

Rules

upstream gstack SKILL.md at the pinned commit. If you feel the urge to

reformat, stop — that is exactly the bug this whole template exists to

avoid.

the manifest is missing or corrupt, refuse to seed and tell the user to

re-run scripts/port-gstack.ts.

table in the same final state.

Expected final output (markdown)

SEED: <N> skills seeded (<core> core, <optional> optional)
UPSTREAM: <commit>
MANIFEST: in sync with files
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.