Agent skill

Add Feature

by sky1wu in sky1wu/Bili-SyncPlay

端到端的 GitHub feature 开发工作流。接受 feature 简述或 issue 编号,从澄清需求到建分支、设计、实现、测试、推送、开 PR、处理评审、合并的完整流程。当用户请求"新增功能 X"、"实现 feature Y"、"给我加一个 ..."等端到端特性开发任务时触发。

GPL-3.0Auto-check passedDevelopment

Install Add Feature

skills CLI
$ npx skills add sky1wu/Bili-SyncPlay --skill add-feature -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sky1wu/Bili-SyncPlay add-feature --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sky1wu/Bili-SyncPlay.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-feature .claude/skills/add-feature && rm -rf skills-src

Use ~/.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/

Facts

Skill name
add-feature
GitHub stars
168
Token cost
~1.1k tokens
SKILL.md length
290 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
GPL-3.0

At a glance

端到端的 GitHub feature 开发工作流。接受 feature 简述或 issue 编号,从澄清需求到建分支、设计、实现、测试、推送、开 PR、处理评审、合并的完整流程。当用户请求"新增功能 X"、"实现 feature Y"、"给我加一个 ..."等端到端特性开发任务时触发。

  • Works in 9 steps: 解析 $1,确定并校验分支 slug → 澄清需求与边界 → 设计轮廓(触及多文件或跨包时必做) → …
  • Development work in your project
  • SKILL.md covers 0. 解析 $1,确定并校验分支 slug, 1. 澄清需求与边界, 2. 设计轮廓(触及多文件或跨包时必做) and 3. 创建 feature 分支(严禁在 main 上工作), plus 6 more sections
  • Calls git, npm and gh

What it does

Add Feature is an agent skill from sky1wu/Bili-SyncPlay. 端到端的 GitHub feature 开发工作流。接受 feature 简述或 issue 编号,从澄清需求到建分支、设计、实现、测试、推送、开 PR、处理评审、合并的完整流程。当用户请求"新增功能 X"、"实现 feature Y"、"给我加一个 ..."等端到端特性开发任务时触发。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with GitHub and Git. The repository describes itself as: Synchronize Bilibili playback across a room. The licence is GPL-3.0.

When your agent uses it

  • Development work in your project

Example prompts

  • “新增功能 X”
  • “实现 feature Y”
  • “给我加一个 ...”
  • “/add-feature”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. 解析 $1,确定并校验分支 slug
  2. 澄清需求与边界
  3. 设计轮廓(触及多文件或跨包时必做)
  4. 创建 feature 分支(严禁在 main 上工作)
  5. 实现 + 测试
  6. 提交前的预提交检查(强制)
  7. 提交、推送、开 PR
  8. 等 Codex 评审,处理所有相关路径
  9. 合并并清理

What it can do on your machine

Read from SKILL.md and the folder at commit e0c87de. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • npm
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, npm and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Feature loads about 1.1k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 290 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from sky1wu/Bili-SyncPlay at commit e0c87de, republished under its GPL-3.0 licence (© sky1wu). 290 words, ~1,149 tokens.

Download SKILL.mdSave it as .claude/skills/add-feature/SKILL.md (or your agent's skills folder).
name
add-feature
description
端到端的 GitHub feature 开发工作流。接受 feature 简述或 issue 编号,从澄清需求到建分支、设计、实现、测试、推送、开 PR、处理评审、合并的完整流程。当用户请求"新增功能 X"、"实现 feature Y"、"给我加一个 ..."等端到端特性开发任务时触发。

add-feature — 端到端 Feature 开发流程

以 $1 作为 feature 简述或 issue 编号。严格按以下顺序执行,任何一步失败都先修复再进下一步,不要跳步。

0. 解析 $1,确定并校验分支 slug

$1 可能是以下两种之一,不要把它直接拼进 git 命令:

0.1 分类
  1. 纯数字($1 匹配 ^[0-9]+$):视为 issue 编号。

    • ISSUE_NUM="$1"
    • BRANCH_SLUG="issue-$ISSUE_NUM"
  2. 其他任何形式(自由文本、中文、含空格/特殊字符):视为自由描述。

    • 由你(Claude)基于描述生成一个 ASCII kebab-case slug 候选:
      • 全小写,仅保留 [a-z0-9-],空格与标点转成 -。
      • 中文先翻成对应英文概念再缩短,不要用拼音堆砌。
      • 长度 2-5 个单词(不超过约 40 字符),语义清晰。
    • 例:"房间邀请链接支持过期时间" → room-invite-expiry。
    • 把候选 slug 念给用户确认,允许用户给出替代值。
    • 得到最终值:BRANCH_SLUG="<最终 slug>"
0.2 强制校验(无论哪条分类,都必须跑一次)

在进入第 3 步之前,用以下 bash 校验 BRANCH_SLUG。不满足条件必须停住,让用户改,或你自己改写后重新走第 0.1 步:

bash
# 规则:全小写、首尾是字母或数字、中间允许 [a-z0-9-]、总长 2-40、不含连续 '-'、不含 '..' 或 '/'
if ! printf '%s' "$BRANCH_SLUG" | grep -Eq '^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$'; then
  echo "rejected: slug must match ^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$ — got: $BRANCH_SLUG" >&2
  return 1 2>/dev/null || exit 1
fi
if printf '%s' "$BRANCH_SLUG" | grep -Eq -- '--|\.\.'; then
  echo "rejected: slug must not contain '--' or '..' — got: $BRANCH_SLUG" >&2
  return 1 2>/dev/null || exit 1
fi

若 $1 是纯数字分类,BRANCH_SLUG="issue-$ISSUE_NUM" 天然满足校验。

0.3 使用约束

最终分支名统一为 feat/$BRANCH_SLUG。后续命令一律使用带双引号的 "feat/$BRANCH_SLUG" 变量,严禁:

  • 把 $1 原样拼进 git switch -c / git push / gh pr create 等命令。
  • 绕过 0.2 的校验,即便"看起来是对的"也不行。
  • 在校验失败后继续硬闯,而不是回到 0.1 重新取值。

1. 澄清需求与边界

  • 如果 $1 是 issue 编号:gh issue view "$ISSUE_NUM" 读完正文和全部评论。
  • 如果 $1 是自由文本描述:先复述你对需求的理解,把以下问题问清楚再动手:
    • 用户故事:谁在什么场景下要用?替代的现状是什么?
    • 验收标准:golden path 和边界情况各是什么?如何判定"完成"?
    • 跨包影响:是否涉及 packages/protocol/ 的类型、extension/ 的消息或 server/ 的路由?
    • 范围外:有哪些相关但本次不做的事?
  • 需求不清时先向用户确认,不要替用户拍板。

2. 设计轮廓(触及多文件或跨包时必做)

动笔前简要回答:

  • 新增/修改的数据契约(ClientMessage / ServerMessage / 领域类型)在哪里落地?如果有新字段或新消息,必须先改 packages/protocol/,再被 extension/ 和 server/ 消费。
  • 新增的控制器/模块归属:参照 CLAUDE.md 里 background/ 各 controller 的职责划分,不要把"模板 + DOM + 业务规则 + 消息派发"塞进同一个文件。
  • 状态机/生命周期:新状态字段要同步考虑 reset/cleanup 路径,避免遗漏姊妹状态。
  • URL 规范化:如果涉及共享视频 URL,继续走 normalizeSharedVideoUrl,不要在调用点各自处理。
  • 服务端环境变量:集中在 server config 层解析,不要散落。

复杂度高时先和用户同步设计再动手。

3. 创建 feature 分支(严禁在 main 上工作)

bash
git switch main && git pull --ff-only
git switch -c "feat/$BRANCH_SLUG"
  • 开工前确认当前分支;如在 main/master,立即切到 feature 分支。
  • 分支名一律使用第 0 步确认过的 $BRANCH_SLUG,绑定 issue 时形如 feat/issue-123,自由文本时形如 feat/room-invite-expiry。
  • 创建后 git rev-parse --abbrev-ref HEAD 再确认一次。

4. 实现 + 测试

  • 协议先行:先在 packages/protocol/ 增/改类型与类型守卫,导出走包根。
  • 再改消费方(extension/ / server/),保持分层清晰。
  • 同步新增或修改:
    • 类型守卫与运行时校验(消息边界 + payload)。
    • 单元测试覆盖 golden path 和边界情况。
    • 如涉及重构刷新的公共领域,回归测试。
  • 状态新增:为每个新字段同步列出 reset/cleanup 点并验证。
  • 异步 Redis/锁操作:务必 await 并包裹 try/catch。
  • 前端改动:按 CLAUDE.md 要求,启动 dev server 在浏览器里手测 golden path 和边界,观察其它功能是否回归;类型检查和测试只验证代码正确性,不验证功能正确性。

5. 提交前的预提交检查(强制)

bash
npm run format:check && npm run lint && npm run typecheck && npm run build && npm test && npm run audit

任一项失败就先修复,不要跳过。

npm run audit 不被 npm test 覆盖,是 CI verify job 的同一道依赖闸门,且会在 本地毫无改动的情况下因新公告而变红——所以要在推送前跑,而不是等 CI 红了再补。不 适用于本仓库的条目写进 audit-allowlist.json,附理由和必填的过期日期。

6. 提交、推送、开 PR

bash
git add <具体文件>
# commit message:绑定 issue 时带 "(#$ISSUE_NUM)",自由文本时不带编号
git commit -m "feat: <简明的'为什么/带来什么价值'>"
git push -u origin "feat/$BRANCH_SLUG"
gh pr create --title "feat: ..." --body "$(cat <<'EOF'
## Summary
- 新增/变更点 1
- 新增/变更点 2

<!-- 如绑定 issue:Closes #NNN -->

## Test plan
- [ ] 单元测试
- [ ] 手动验证(golden path)
- [ ] 手动验证(边界情况)
EOF
)"
  • Conventional Commits:新能力用 feat:;行为不变的结构改动用 refactor:,不要藏在 feat: 里。
  • 一个可评审单元一次提交;大特性拆成多个逻辑提交。
  • 严禁 git add -A / git add .。

7. 等 Codex 评审,处理所有相关路径

  • 不只是修被标的那一行,对整类问题审视所有相关代码路径。
  • 自审一轮:grep 被标关注点相关的调用点和姊妹函数,逐一确认修复已应用或显式不需要。
  • 处理完再跑第 5 步完整预提交序列。
  • 修复后再推,等下一轮评审至通过。

8. 合并并清理

bash
gh pr merge --squash --delete-branch
git switch main && git pull --ff-only
  • 只有 CI 绿且评审通过后才合并。
  • 如绑定 issue,合并会经由 Closes #NNN 自动关闭。
  • 除非用户明确授权,否则 gh pr merge 前先向用户确认。

硬性规则

  • 严禁直接推 main/master。
  • 严禁跳过 format:check / lint / typecheck / build / test / audit。
  • 严禁 --no-verify / --no-gpg-sign 绕过钩子或签名。
  • 严禁 git add -A / git add .。
  • 不要越界:不要搭建"未来可能用到"的抽象;三行相似代码胜过过早抽象。
  • 不要越权:没明确要求就不要重构、清理无关代码、改 CI/CD 或依赖版本。

© sky1wu, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/add-feature of sky1wu/Bili-SyncPlay.

Open the folder on GitHubat commit e0c87de

Compare with similar skills

Add Feature 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.

Add Feature compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Feature this skillsky1wu/Bili-SyncPlay168—~1.1kAutomated safety check: PassGPL-3.0
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0
Draft Release Notesjamiepine/voicebox57k—~941Automated safety check: PassMIT
PR Review State Fetchprisma/orm48k—~767Automated safety check: PassApache-2.0

Similar skills

  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Draft Release Notes

    jamiepine/voicebox

    Writes or refreshes the Unreleased section of CHANGELOG.md as a themed narrative built from the commits, PRs and diff since the last version tag.

    57k GitHub stars~941 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Publishes curated, bilingual release notes for an existing Mole version tag with gh release edit, including contributor thanks and reactions, after the release workflow finishes.

    70k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed

More from sky1wu/Bili-SyncPlay

  • Review Round

    sky1wu/Bili-SyncPlay

    处理当前 PR 的一轮 Codex 评审反馈。从读取评审信号、逐条定位根因、修复、验证、回复线程到推送的完整单轮流程。当用户请求"处理评审意见"、"处理下一轮反馈"、"看看 Codex 说了什么"或类似单轮评审响应任务时触发。不负责合并。

    168 GitHub stars~1.5k tokensUpdated 20 days ago
    Auto-check passed
  • Fix Issue

    sky1wu/Bili-SyncPlay

    端到端的 GitHub issue 修复工作流。接受 issue 编号作为参数,从查看 issue 到建分支、实现修复、推送、开 PR、处理评审、合并的完整流程。当用户请求"修复 issue

    168 GitHub stars~590 tokensUpdated 20 days ago
    Auto-check passed

Works with

Categories

Questions about Add Feature

What does Add Feature do?

端到端的 GitHub feature 开发工作流。接受 feature 简述或 issue 编号,从澄清需求到建分支、设计、实现、测试、推送、开 PR、处理评审、合并的完整流程。当用户请求"新增功能 X"、"实现 feature Y"、"给我加一个 ..."等端到端特性开发任务时触发。. Add Feature is an agent skill from sky1wu/Bili-SyncPlay.

When should I use Add Feature?

Add Feature fits situations like: development work in your project.

How do I install Add Feature in Claude Code?

Run `npx skills add sky1wu/Bili-SyncPlay --skill add-feature -a claude-code`. Or copy the skill folder (.claude/skills/add-feature in sky1wu/Bili-SyncPlay) into .claude/skills/add-feature in your project. Claude Code loads it when a task matches its description.

How do I install Add Feature in Codex?

Run `npx skills add sky1wu/Bili-SyncPlay --skill add-feature -a codex`. Or copy the skill folder (.claude/skills/add-feature in sky1wu/Bili-SyncPlay) into .agents/skills/add-feature in your project. Codex loads it when a task matches its description.

Can I use Add Feature in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sky1wu/Bili-SyncPlay --skill add-feature -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-feature, .gemini/skills/add-feature, .github/skills/add-feature and .opencode/skills/add-feature in your project.

What does Add Feature need to run?

Going by SKILL.md and its folder, Add Feature needs the command-line tools its instructions call (git, npm and gh).

Does Add Feature access the network?

SKILL.md contains no URLs. Its commands use git, npm and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Add Feature safe to install?

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. Review the folder before installing.

What licence does Add Feature use?

Add Feature is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Feature use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Feature?

Skills that share tags, products or a category with Add Feature: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Pull Request Title and Body Writer (openinterpreter/openinterpreter, 69k stars) and Draft Release Notes (jamiepine/voicebox, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Feature?

sky1wu (a GitHub user) maintains it in sky1wu/Bili-SyncPlay, which has 168 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 21, 2026.

Source: sky1wu/Bili-SyncPlay on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.