gitreverse
Turn a public GitHub repository into a single synthetic user prompt that someone might paste into Cursor, Claude Code, Codex, etc. to vibe-code the project from scratch. Use when the user references a GitHub URL or `owner/repo` slug together with prompt reconstruction, vibe coding, or rebuild-from-scratch intent. Route source: https://github.com/filiksyos/gitreverse
- License 许可
- MIT
- 所属仓库
- dmae97/omk
- 最近更新
- 2026-11-14
- Stars
- ★ 153
- Forks
- 29
01 前言 Front Matter
- name
- gitreverse
- description
- Turn a public GitHub repository into a single synthetic user prompt that someone might paste into Cursor, Claude Code, Codex, etc. to vibe-code the project from scratch. Use when the user references a GitHub URL or `owner/repo` slug together with prompt reconstruction, vibe coding, or rebuild-from-scratch intent. Route source: https://github.com/filiksyos/gitreverse
- argument-hint
- <owner/repo or github url>
03 SKILL.md 正文
GitReverse — repository to prompt
Reverse a public GitHub repository into one short, conversational user prompt grounded in real repo context. This ports the GitReverse flow (https://github.com/filiksyos/gitreverse) into an OMK skill: pull repo metadata, a depth-1 root file tree, and the README, then synthesize the single prompt a person could paste into an AI coding agent to rebuild the project from scratch.
Core workflow
- Parse the target: accept a full GitHub URL (
https://github.com/owner/repo, including/tree/...paths — use the whole repo for now) or anowner/reposlug. GitHub-styletreesubpaths are NOT scoped yet; the reverse flow uses the whole repo. - Verify visibility: only public repositories. If the repo 404s, is private, or requires auth to read, stop and report it as a blocker.
- Fetch exactly three evidence surfaces:
- repo metadata (owner, name, description, primary language, topics)
- root file tree at depth 1 (top-level files and directories)
- README (rendered to text)
- Synthesize one short, conversational prompt grounded in that context. It describes what to build, not how to copy it — no file dumps, no verbatim README paste, no system prompts.
- Cite evidence: name which facts came from metadata vs. file tree vs. README, and keep observed facts clearly separated from synthesized text.
Tool selection
- Tools:
ghorgitfor local checks; plain HTTPSfetchagainstapi.github.comis enough (metadata, git/trees, readmes endpoints) - MCP:
github,filesystem - Hooks:
protect-secrets,stop-verify
Safety constraints
- Public repositories only. Never fetch, mirror, or echo private repo contents even if a token is available.
- If a README or file listing exposes secrets (tokens, keys, credentials), do not copy them into the prompt; redact and note the finding.
- The output is a user prompt, not documentation or a system prompt.
- Rate limits: prefer unauthenticated GitHub API and few requests; set a token only if the user provides one for higher limits.
Acceptance
- Repository owner/name is parsed from the URL or slug before any fetch
- The generated prompt is grounded in README and file-tree evidence
- Only public repository data is used; private or credential-bearing content is refused and redacted
- Observed repo facts and synthesized prompt text are clearly separated
- Output is exactly one conversational prompt plus an evidence section
04 同仓库更多 Skills
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.
nested-child
Nested skill should be ignored.
root-skill-preferred
Root skill should win.
no-frontmatter
暂无简介
child-skill
A nested skill in a subdirectory.