Init
asgeirtj/system_prompts_leaks
Initialize new CLAUDE.md file(s) and optional skills/hooks with codebase documentation
按风险编写和维护项目规范,保留有效功能约定与关键决策。用于明确要求整理 spec、补齐项目文档、更新需求设计或迁移旧文档流程;普通代码修改不自动启动完整文档流程。
$ npx skills add legeling/PromptHub --skill spec-init -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install legeling/PromptHub spec-init --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/spec-init .claude/skills/spec-init && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .claude/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-initType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add legeling/PromptHub --skill spec-init -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install legeling/PromptHub spec-init --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/spec-init .agents/skills/spec-init && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .agents/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add legeling/PromptHub --skill spec-init -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install legeling/PromptHub spec-init --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/spec-init .cursor/skills/spec-init && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .cursor/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/legeling/PromptHub.git --path .agents/skills/spec-init--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add legeling/PromptHub --skill spec-init -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install legeling/PromptHub spec-init --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/spec-init .gemini/skills/spec-init && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .gemini/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install legeling/PromptHub spec-initInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add legeling/PromptHub --skill spec-init -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/spec-init .github/skills/spec-init && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .github/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add legeling/PromptHub --skill spec-init -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install legeling/PromptHub spec-init --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/legeling/PromptHub.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/spec-init .opencode/skills/spec-init && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "spec-init" agent skill from https://github.com/legeling/PromptHub/tree/main/.agents/skills/spec-init into .opencode/skills/spec-init/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-init", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
spec-init按风险编写和维护项目规范,保留有效功能约定与关键决策。用于明确要求整理 spec、补齐项目文档、更新需求设计或迁移旧文档流程;普通代码修改不自动启动完整文档流程。
Spec Init is an agent skill from legeling/PromptHub. 按风险编写和维护项目规范,保留有效功能约定与关键决策。用于明确要求整理 spec、补齐项目文档、更新需求设计或迁移旧文档流程;普通代码修改不自动启动完整文档流程。
Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 29 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `examples/demo-app/AGENTS.md` and `examples/demo-app/README.md`).
The repository describes itself as: 一款包含了 Prompt管理,Skill管理,Agent管理的一站式AI工具箱,助你高效管理提示词,一键分发skills ,一站式管理Agent资产,并实现云同步,备份,版本管理 | An all-in-one AI toolbox for prompt, agent, and skills management. Reuse prompts…. The licence is AGPL-3.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5439436. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Spec Init loads about 645 tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 23 tokens; SKILL.md has 97 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from legeling/PromptHub at commit 5439436, republished under its AGPL-3.0 licence (© legeling). 97 words, ~645 tokens.
.claude/skills/spec-init/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.帮助项目保留足以指导开发的有效约定,让文档投入与当前任务的风险相称。 用户要求实施时,推进到实现和验证;用户只要求分析或方案时,交付分析或方案。
| 请求 | 最小准备 | 文档投入 |
|---|---|---|
| 小修复、局部调整、普通重构 | 问题、范围、验证办法已明确 | 不新建需求、计划或 change;已有说明失真时原位更新 |
| 普通功能 | 目标、非目标、验收条件清楚 | 更新已有功能文档;独立新主题才新建一份 |
| 跨会话或多人实施 | 上述内容和剩余工作可交接 | 按需保留一份活动计划,同一目标继续更新原计划 |
| 权限、数据迁移、公共契约、不可逆操作等高风险变化 | 关键决策、失败路径、兼容和恢复办法清楚 | 在相关文档补必要设计与验证;重大取舍才独立记录 |
| 明确要求完整需求或设计 | 覆盖用户指定范围 | 按需要展开角色、异常流、契约和质量目标,不自动铺满目录 |
小改动也可能高风险,按影响判断,不按代码行数判断。 若没有需要改变的约定,零文档改动是正常结果。
停止扩写的条件:当前任务能够安全实施、能够验收,必要约定已经明确。 不要为“更完整”补无关背景、示例、测试矩阵或未来功能;不要在每个局部修改后扫描所有文档。
每个主题指定一份权威文档,保存最新确认的需求、边界和验收;沿用原路径,由已有文档入口指向它。唯一真源不等于全项目只能有一个文件。 用户确认需求变化后,立即原位替换权威文档中的旧要求与验收,不只追加补充说明,不等实现完成才更新,也不另建“新版需求”。尚未确认的提议不能替换已确认需求。 需求与交付状态分开:新需求立即生效,未完成的实现标注“待实施”;必要时注明当前实现差距,不能把旧实现描述成仍然有效的要求,也不能把新需求写成已交付。
围绕本次变更的主题、术语和旧规则,定向检查相关现行文档,包括 README、AGENTS、设计和计划。权威文档以外的需求和验收副本改为链接,不重新抄写新规则;设计只记录实现方案或差距。修订只改受影响内容,保留原有命令和其他无关信息,不能只改一份而让另一份旧规则继续生效。 活动计划只记实施动作、进度和阻塞,并引用权威需求,不再保存另一套需求定义。需求变化时撤下失效待办,完成或被替代后移出活动入口。 历史仅用于追溯,由历史正文或入口明确其已失效及现行文档,不作为执行依据;普通编辑历史交给 Git。无需重写所有历史或全仓库扫文档。
用户最新明确决定用于更新权威文档;代码和测试用于核实实现状态,不能覆盖已确认需求。若无法判定哪份文档权威或哪项决定已确认,只澄清影响本次工作的关键冲突。 交付前确认本次主题没有冲突的现行说法,验收与最新需求一致,实施状态真实。不要用“已归档”或“已更新计划”代替纠正仍生效的旧规则。
验收条件直接关联真实测试路径、命令或人工验收步骤。已有 API schema、配置说明和测试资产优先引用,不重复转抄。
日常开发不强制 FR / DES / TEST / T 编号或手工覆盖矩阵;项目明确需要追踪体系时保留已有 ID,只维护本任务涉及的关系。
测试策略、测试标准、用例、回归和 fixtures 不必拆成七份文档。高风险变化仍要覆盖失败、幂等或恢复路径,并如实说明未验证边界。
完成标准是目标满足、必要检查完成或限制已说明、受影响约定准确;文档数量不是门禁。
更新 Skill 不等于项目里旧的 AGENTS 或规则已经迁移。存在旧的全量文档门禁时,先辨明规则来源;仅在获准的迁移范围内改写,不能静默忽略项目规则。 迁移保持原路径和用户内容,不自动删除旧文档、清空 active、移动目录或覆盖整份 AGENTS。只替换已确认来自旧 Skill 的流程片段,保留项目特有约束。
只有用户需要空项目文档骨架时才运行 scripts/spec-init.sh;默认仅生成 README、简短 AGENTS 和文档入口。
脚手架不理解业务,跑完不能声称 spec 完成。现有项目优先人工定向更新,不用脚手架强制覆盖来迁移规则。
不要创建空需求、示例 change、规则大全或未使用目录。
说明实现或规范改变了什么、如何验证,以及剩余限制。没有改文档无需补“无变化”记录。 不以补齐规范代替已获授权的实施;不把未完成实现标成完成。
© legeling, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 19 other files (scripts, references, assets) in .agents/skills/spec-init of legeling/PromptHub.
Open the folder on GitHubat commit 5439436
Spec Init next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Spec Init this skilllegeling/PromptHub | 1.7k | — | ~645 | Automated safety check: Pass | AGPL-3.0 | |
| Initasgeirtj/system_prompts_leaks | 69k | — | ~5.5k | Automated safety check: Pass | CC0-1.0 | |
| Initasgeirtj/system_prompts_leaks | 69k | — | ~602 | Automated safety check: Pass | CC0-1.0 | |
| Initbrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~596 | Automated safety check: Notes | Custom licence | |
| Initpartcad/partcad | 503 | — | ~492 | Automated safety check: Pass | Apache-2.0 | |
| Inithashgraph-online/awesome-codex-plugins | 1.2k | — | ~603 | Automated safety check: Pass | Apache-2.0 |
asgeirtj/system_prompts_leaks
Initialize new CLAUDE.md file(s) and optional skills/hooks with codebase documentation
asgeirtj/system_prompts_leaks
Initialize a new CLAUDE.md file with codebase documentation. An agent skill from asgeirtj/system_prompts_leaks.
brycewang-stanford/Auto-Empirical-Research-Skills
Fills all [FILL:] placeholders across the template to initialize a new research project.
partcad/partcad
Initialize a PartCAD package in the current directory by running the installed PartCAD CLI (pc init / partcad init).
hashgraph-online/awesome-codex-plugins
Set up docflow in a repo with no docs yet: scaffold the docs tree, write docflow.json, add agent guidance.
TokenRollAI/llmdoc
Explicit V3 bootstrap for repositories that do not already have valid llmdoc knowledge.
legeling/PromptHub
PromptHub release update skill. An agent skill from legeling/PromptHub.
按风险编写和维护项目规范,保留有效功能约定与关键决策。用于明确要求整理 spec、补齐项目文档、更新需求设计或迁移旧文档流程;普通代码修改不自动启动完整文档流程。. Spec Init is an agent skill from legeling/PromptHub.
Run `npx skills add legeling/PromptHub --skill spec-init -a claude-code`. Or copy the skill folder (.agents/skills/spec-init in legeling/PromptHub) into .claude/skills/spec-init in your project. Claude Code loads it when a task matches its description.
Run `npx skills add legeling/PromptHub --skill spec-init -a codex`. Or copy the skill folder (.agents/skills/spec-init in legeling/PromptHub) into .agents/skills/spec-init in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add legeling/PromptHub --skill spec-init -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spec-init, .gemini/skills/spec-init, .github/skills/spec-init and .opencode/skills/spec-init in your project.
SKILL.md names no scripts, command-line tools or credentials: Spec Init is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Spec Init is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 645 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Spec Init: Init (asgeirtj/system_prompts_leaks, 69k stars), Init (asgeirtj/system_prompts_leaks, 69k stars), Init (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars) and Init (partcad/partcad, 503 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
legeling (a GitHub user) maintains it in legeling/PromptHub, which has 1,697 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 28, 2026.
Source: legeling/PromptHub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.