Local CI
penpot/penpot
Run local CI-style checks with ./scripts/ci (lint, tests, format) per monorepo module.
Use this standalone skill to build or update a project architecture knowledge base (docs/architecture.md) for multi-end monorepos or any repo with a shared layer, from code evidence, or to check…
$ npx skills add leo-kuang-ai/spec-first --skill spec-project-rules -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install leo-kuang-ai/spec-first spec-project-rules --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/leo-kuang-ai/spec-first.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/spec-project-rules .claude/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .claude/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rulesType 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 leo-kuang-ai/spec-first --skill spec-project-rules -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install leo-kuang-ai/spec-first spec-project-rules --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/spec-project-rules .agents/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .agents/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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 leo-kuang-ai/spec-first --skill spec-project-rules -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install leo-kuang-ai/spec-first spec-project-rules --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/spec-project-rules .cursor/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .cursor/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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/leo-kuang-ai/spec-first.git --path skills/spec-project-rules--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 leo-kuang-ai/spec-first --skill spec-project-rules -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install leo-kuang-ai/spec-first spec-project-rules --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/spec-project-rules .gemini/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .gemini/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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 leo-kuang-ai/spec-first spec-project-rulesInstalls 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 leo-kuang-ai/spec-first --skill spec-project-rules -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/spec-project-rules .github/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .github/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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 leo-kuang-ai/spec-first --skill spec-project-rules -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install leo-kuang-ai/spec-first spec-project-rules --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/spec-project-rules .opencode/skills/spec-project-rules && 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-project-rules" agent skill from https://github.com/leo-kuang-ai/spec-first/tree/master/skills/spec-project-rules into .opencode/skills/spec-project-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spec-project-rules", 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-project-rulesUse this standalone skill to build or update a project architecture knowledge base (docs/architecture.md) for multi-end monorepos or any repo with a shared layer, from code evidence, or to check…
Spec Project Rules is an agent skill from leo-kuang-ai/spec-first. Use this standalone skill to build or update a project architecture knowledge base (docs/architecture.md) for multi-end monorepos or any repo with a shared layer, from code evidence, or to check existing rules for staleness, or to write back a newly confirmed convention in one sentence. Do not use for mining coding style only (spec-rule-miner), capturing solved-problem learnings (spec-compound), reviewing diffs (spec-code-review), or writing lint/formatter config.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 153 other files, including scripts and reference files (for example `evals/README.md`, `evals/cases/admission-generic-refusal.yaml` and `evals/cases/bootstrap-gold.yaml`).
It sits in Development, covering Linting and formatting, Agent instruction files and Monorepo tooling. The repository describes itself as: 仓库原生 AI Coding Harness —— 把一次性 AI 对话变成可治理、可验证、可沉淀的工程闭环 · spec-first.cn. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 74655dc. 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/ (Shell, from the files we listed), 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 Project Rules loads about 1.4k tokens when it runs, and up to ~9.1k if it reads all its reference files. Until then it costs about 122 tokens; SKILL.md has 370 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 leo-kuang-ai/spec-first at commit 74655dc, republished under its MIT licence (© leo-kuang-ai). 370 words, ~1,409 tokens.
.claude/skills/spec-project-rules/SKILL.md (or your agent's skills folder). This skill also uses 148 other files; get the full folder from GitHub.把多端 monorepo 中 AI 每次会话都要重新猜的边界知识——归属、依赖方向、复用契约、高价值隐式约定——写成有证据的、会被装载的持久资产(docs/architecture.md 单文件),让 AGENTS.md/CLAUDE.md 指向它。
一级产物是架构边界知识;编码约定是二级产物,只收影响 AI 生成正确性的高信号规则。
spec-rule-miner。spec-compound。CONCEPTS.md / spec-compound。target_repo:明确的本地目标仓库。docs/architecture.md:单文件四小节(归属/依赖方向/复用/约定),marker 管理。docs/architecture.md 和根 AGENTS.md/CLAUDE.md 的 managed block。大仓分批执行时,每批产出直接增量合入知识库(不留中间产物文件),已合入批次即断点。headless_default_write——在无人应答的环境里以提问中断等于把运行挂起,不是安全默认。docs/architecture.md + managed block)并必须记录回执。agents_embed_skipped。已有 marker 的刷新走标准 preview 流程。<!-- spec-project-rules-start --> / <!-- spec-project-rules-end -->(独占一行,详见 Knowledge Format);不得使用其他 managed-block 词汇(如 BEGIN/END MANAGED)替代。--scope full(或无 marker 首次)--scope module:<name>(模块名来自步骤 2 的模块清单)--dry-run(只报告不写)scripts/extract-deps.cjs <repoRoot> 获取依赖图/模块清单/churn。布局不受支持(npm workspaces 与 Gradle 均无)时脚本 exit 2 并输出确定性抽样清单(sampling.modules[].sample_files:模块=顶级源码目录,代表文件=入口优先+churn top,每模块 ≤8 且下限 2,总预算约 60——目录极多时可超出,以 payload sampled_file_count 为准)——按清单取证,不自创抽样;closeout 披露抽样比例(sampled/total)、无依赖图事实与被跳过目录(payload skipped_dirs)。agents_embed_skipped。closeout 必含:scope、确认环节记录(headless_default_write / agents_embed_skipped 如触发)、limitations;大仓批次另按分批节披露覆盖模块与继续命令。单会话装不下大仓是常态。执行方式是骨架先行、分批增量合入——每批结束即把该批条目 preview 后合入知识库,天然可断点续跑(中断后从下一批继续,已合入内容不丢)。
第 1 批 — 骨架:
第 2..N 批 — 模块群:
合入纪律:
--scope module:<name>)成本口径:目标是"有界读取"(每批只读该群代表文件),不是精确 token 预算。实测锚点:20,750 文件 Gradle 仓单次全量会话耗 14.7M tokens / 740s(2026-08-29 hszq-app 实测);分批把每批输入约束在代表文件清单内。
docs/architecture.md(用户手写文件)→ 按合并规则只追加 marker 段,不新增、不改写 frontmatter,closeout 披露。docs/architecture/,v1 遗留)→ 不迁移、不删除;建立单文件知识库前交互确认;headless 下跳过并记 limitations。约定 小节宁缺毋滥。scripts/extract-deps.cjs <repoRoot> --verify 核对依赖图与依赖方向小节(依赖方向条目用规范动词:禁止/不得/不允许);发现违规边、失效 source refs 或别名扫描错误时 exit 1--freshness(可与 --verify 同用,advisory 不影响退出码):以知识库 frontmatter 的 source_commit 为 git 基线对 source refs 与复用条目住址做脏检测——clean 且 verify clean → 确定性 refresh_noop,零重验;dirty → 只重验 dirty_refs 涉及的条目,不重挖全库(文件级保守判定,是否实质影响条目由重验裁决;目录住址按其下任一文件变更计脏);unavailable(无 git/浅克隆/基线不可解析)→ 退回全量重验并在 closeout 披露© leo-kuang-ai, MIT. 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 148 other files (scripts, references) in skills/spec-project-rules of leo-kuang-ai/spec-first.
Open the folder on GitHubat commit 74655dc
Spec Project Rules 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 Project Rules this skillleo-kuang-ai/spec-first | 107 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Local CIpenpot/penpot | 61k | — | ~822 | Automated safety check: Pass | MPL-2.0 | |
| Create Saleor Packagesaleor/apps | 162 | — | ~608 | Automated safety check: Pass | Custom licence | |
| Cxas Agent FoundryGoogleCloudPlatform/cxas-scrapi | 107 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Leanspec Developmentcodervisor/leanspec | 296 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Add Plugin Ruleeslint-config/airbnb-extended | 131 | — | ~646 | Automated safety check: Pass | MIT |
penpot/penpot
Run local CI-style checks with ./scripts/ci (lint, tests, format) per monorepo module.
saleor/apps
Scaffold a new shared package in the saleor-apps monorepo under ./packages/.
GoogleCloudPlatform/cxas-scrapi
End-to-end GECX/CXAS/CES conversational agent lifecycle -- build agents from requirements (PRD-to-agent), create and run evals (goldens, simulations, tool tests, callback tests), debug failures, and…
codervisor/leanspec
Development workflows, commands, publishing, CI/CD, changelog management, and contribution guidelines for LeanSpec.
eslint-config/airbnb-extended
Fix the "<Plugin Updated with <rule" build error from script/checkUpdates.ts by adding a new or deprecated plugin rule to the right rules/ file.
codsen/codsen
Keep the repository's linted Markdown passing npm run lint:markdown.
leo-kuang-ai/spec-first
Audit mobile App PRD/Figma/local-source consistency across page routes, KMP/Clean Architecture, components, analytics, i18n, engineering quality, and industry lenses before runtime validation; use…
leo-kuang-ai/spec-first
Create a durable cross-session handoff or resume from a user-selected continuity source.
leo-kuang-ai/spec-first
Give a decisive, project-grounded verdict on an external input — judged against the current project, not in the abstract.
leo-kuang-ai/spec-first
Resolve PR review feedback by evaluating validity and fixing issues with conflict-aware resolver dispatch.
leo-kuang-ai/spec-first
Analyze explicit Riffrec product-feedback captures, including riffrec-.zip, the Riffrec session.json + events.json + recording.webm + voice.webm bundle, or media/notes the user identifies as a…
leo-kuang-ai/spec-first
Document a recently solved problem or durable project vocabulary in docs/solutions/ or CONCEPTS.md.
Categories
Use this standalone skill to build or update a project architecture knowledge base (docs/architecture.md) for multi-end monorepos or any repo with a shared layer, from code evidence, or to check…. Spec Project Rules is an agent skill from leo-kuang-ai/spec-first.md) for multi-end monorepos or any repo with a shared layer, from code evidence, or to check existing rules for staleness, or to write back a newly confirmed convention in one sentence.
Spec Project Rules fits situations like: mining coding style only (spec-rule-miner); capturing solved-problem learnings (spec-compound); reviewing diffs (spec-code-review); writing lint/formatter config.
Run `npx skills add leo-kuang-ai/spec-first --skill spec-project-rules -a claude-code`. Or copy the skill folder (skills/spec-project-rules in leo-kuang-ai/spec-first) into .claude/skills/spec-project-rules in your project. Claude Code loads it when a task matches its description.
Run `npx skills add leo-kuang-ai/spec-first --skill spec-project-rules -a codex`. Or copy the skill folder (skills/spec-project-rules in leo-kuang-ai/spec-first) into .agents/skills/spec-project-rules 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 leo-kuang-ai/spec-first --skill spec-project-rules -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-project-rules, .gemini/skills/spec-project-rules, .github/skills/spec-project-rules and .opencode/skills/spec-project-rules in your project.
Going by SKILL.md and its folder, Spec Project Rules needs a shell for the scripts in its folder. Our summary lists: A Bash shell.
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 Project Rules is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.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 7.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Spec Project Rules: Local CI (penpot/penpot, 61k stars), Create Saleor Package (saleor/apps, 162 stars), Cxas Agent Foundry (GoogleCloudPlatform/cxas-scrapi, 107 stars) and Leanspec Development (codervisor/leanspec, 296 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
leo-kuang-ai (a GitHub user) maintains it in leo-kuang-ai/spec-first, which has 107 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 8, 2026.
Source: leo-kuang-ai/spec-first on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.