360 Secure SkillHub
360 安全技能中心

new-feature

用于新功能或修复的开始阶段:若任务来自 Linear,先标记为进行中,再拉取最新 main 并创建功能分支;仅在并行工作不会冲突时使用 worktree;完成实现后按代码结构规范提交,并用 gh 创建以 main 为基线的 PR,附带检查清单及 UI 变更截图或视频。

分类:开发
beraki
热度 0.00
最近更新 2026-11-04 11:23:18

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add beraki/my-code-factory-skills/new-feature
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
new-feature
description
Pick up a task, mark a Linear issue In Progress, and branch from the latest main before writing code. Use at the start of every feature, fix, or task. A worktree is only for non-blocking work other agents are doing in parallel. If the work overlaps or would block, stop and ask.

New feature

Caveman is always on for agent replies and for text the agent writes: commit messages, PR bodies, and chat. Apply it to those texts even where the caveman skill says commits and PR bodies stay plain prose.

  1. Pick up the task. If it is a Linear issue, mark it In Progress before branching. Example key: BER-12.

  2. Pull the latest main. Branch name is feature/short-description, or <LINEAR-KEY>/short-description when there is a ticket (example: BER-12/short-description).

    git checkout main
    git pull
    git checkout -b feature/short-description
    

    With a ticket:

    git checkout main
    git pull
    git checkout -b BER-12/short-description
    
  3. A worktree is only for when other agents are doing non-blocking work in parallel. If the work overlaps or would block, stop and ask. Do not make a worktree the default.

    Before adding a worktree, check open PRs with gh pr list and gh pr diff <n> --name-only, and check any uncommitted work in the checkout. Overlap means stop.

  4. Build by following the code-structure skill (actions own why and when, services own how, extract only after a second caller).

  5. When the work is done, open a PR for Beraki to review. Every pull request uses gh pr create --base main. Never --base integration. There is no exception.

    gh pr create --base main
    

    The agent never merges the pull request into main. He tests locally and comments on the PR.

    If the repo has an integration branch, after the change merge that branch directly into integration. Do not open a pull request for that merge.

    git checkout integration
    git pull
    git merge <feature-branch>
    git push
    

    The PR body includes a short checklist (what changed, how to test, Linear link if any):

    ## Checklist
    
    - [ ] What changed
    - [ ] How to test
    - [ ] Linear link, if any
    

    A UI change requires a screenshot or a video on the PR. Use before-and-after when the proof is a page or element comparison.

  6. Run unslop on text a person will read before you commit or post it: commit messages, the PR title and body, docs, code comments, and the closing reply.