mendloop-co/crewline/slice
Claude Code and agent skill by mendloop-co/crewline
- community
Checking that the SKILL.md file is still in the repository.
Start and finish one slice of work in a repository run by a crew of AI agents. Start means claiming it with a draft PR from the work branch before building. Finish means meeting the team's definition of done, sized by risk, and handing the PR to the merge gate. Use it when beginning any feature, fix, docs or tooling change, and again before marking a PR ready. Use it even if you're only told "start on X", "open the PR", "is this done?", "ship it" or "next task".
Install
npx vskill@latest install mendloop-co/crewline/sliceSKILL.md
The same SKILL.md was published earlier as mendloop-co/crewline/slice.
One slice, start to finish
Read .claude/crewline.yml first; {…} below are its values. The rules and their reasons live in {docs.contributing} and {docs.definition_of_done}. This skill is the order of steps; if they disagree, the docs win.
Start
- Know who you are and where your work comes from (the "Who you are" section of
{docs.rules}):
- With the team model, a Dev: only the task your manager gave you. Your manager reads GitHub for the team and
tells you what changes your work.
- Everyone else (any agent of a small crew, or a team's manager): on the home team, the next item on
{docs.board}, else the next
unclaimed bug fix or specified slice; on an outside team, only a task agreed in a for:<team> issue. Run the reading routine of the collab skill first: an open for:everyone notice may change how you work or freeze an area. (A queue helper can list your next items: {docs.contributing}, "Scripts for the mechanical steps".)
- Something new with no spec? Write the plan first and get it approved, then build.
- Check for an overlapping claim. Open PRs are the live list of who does what:
gh pr list -R {repo} --state open --search "<area or file words>". If a draft already covers it, don't start:
- with the team model, a Dev tells its manager;
- on the home team, ask the coordinator (the coordinator itself settles it with the claim's author);
- an outside team's manager asks in a
for:{home_team}issue.
- Branch from the latest work branch:
git fetch origin && git switch -c <type>/<slug> origin/{work_branch}. The type is feat, fix, docs or chore.
- Claim it now, before the work. The draft PR is the claim:
``bash git commit --allow-empty -m "chore: claim <slice>" && git push -u origin HEAD gh pr create -R {repo} --draft --base {work_branch} --title "<type>(<scope>): <slice>" \ --body-file .github/pull_request_template.md ``
- The scope is the area from
{docs.areas}that the slice mostly touches. - If the slice came from an issue, put
Refs #<issue>in the PR body, and comment on the issue:
Claimed in #<PR>. — <signature>. A Dev posts that comment only if its manager asked it to; otherwise its report names the PR, and the manager comments.
If your project has schema migrations and the slice adds one, put its number in the title, e.g. [migr <app>/<NNNN>], so clashes show up in the PR list. Never target {production_branch}, except for a hotfix (below).
A stacked PR (built on another open PR) uses --base <parent's branch> instead, and says "stacked on #N" in its body. The coordinator retargets it to {work_branch} before merging the parent; then you merge {work_branch} in.
Build
- Work only in your own working copy. Never run anything inside another agent's.
- Follow
{docs.rules}in full. - Batch your fixes, run the affected tests, then push once. Don't push, fix, push.
- Sharing a machine or clone ("Sharing one machine or clone" in
{docs.contributing}): nogit stash, a test
database name of your own per worktree, and never kill a server or free a port before you know who owns it.
- Bring
{work_branch}in withgit merge. Never rebase or force-push a branch that has been pushed: others
may have read, reviewed or built on it.
Finish
- Bring the work branch in:
git fetch origin && git merge origin/{work_branch}. Resolve code conflicts by hand,
then rerun the tests.
- Meet `{docs.definition_of_done}`, sized by risk. Anything touching
{merge_gate.high_risk}gets the full set
of reviews and tests. Docs and chores get the light set.
- Update, in this same PR, the spec or doc that owns any behaviour you changed, and the area's status file in
{docs.status_dir}. Outside teams do this too; the coordinator reviews it with the rest. There's no separate docs task.
- Fill the PR body:
- areas touched (from
{docs.areas}); - migrations, impact on other areas and shared contracts;
- assumptions, tests, and DoD evidence;
- new owner decisions as rows under
## Decisions, with the owner's exact words and where they said them as the
source. Never edit {docs.decisions} in the PR: the coordinator appends the rows after the merge. A relayed decision isn't the owner's word ({docs.contributing}, "The owner's decisions and steps"). An outside team lists only decisions already agreed in an issue, with the link.
Refer to another PR or issue as `Refs #N`, never with a closing keyword ({docs.contributing}, "The path of a change").
- Before pushing more commits, check the PR is still open:
gh pr view <N> -R {repo} --json state. A commit
pushed after a merge never reaches {work_branch}, so open a new PR instead.
- Mark it ready:
gh pr ready <N> -R {repo}. Marking it ready replaces any "ready" message.
- Review fixes on a PR that's already ready: put it back to draft with
gh pr ready <N> -R {repo} --undo
when you start them, and mark it ready again when they're done. The PR's state is the signal; without it, "ready again" has nothing to change.
- The home team self-merges only
{merge_gate.self_merge_ok}, once it's ready and its checks pass:
gh pr merge <N> -R {repo} --merge --delete-branch --match-head-commit <your head sha>. Everything else waits for the coordinator.
- Outside teams never merge.
- After the merge:
- Check, then clean up your clone.
git fetch origin, then check that
gh pr view <PR number> -R {repo} --json state,headRefOid says MERGED and that its headRefOid equals git rev-parse <branch>: the merge carried everything you have, for merge and squash merges alike. If it doesn't, stop and report, and leave the branch and its worktree as they are. Only when it does: switch back to {work_branch} and pull, remove the branch's worktree if it had one with git worktree remove (never rm on a path held in a variable), and delete the local branch with git branch -D <branch> (plain -d refuses after a squash merge);
- delete the remote branch once no open PR uses it as its base; the coordinator retargets any children first
({docs.contributing}, "The merge gate");
- report (the
reportskill). With the team model, a Dev then waits for its manager: it doesn't pick its next
item or run the reading routine itself;
- everyone else runs the reading routine again and takes the next item (step 1 of "Start");
- start the next slice with a fresh context when
{docs.contributing}, "One working session per task, and the
right model", says so: save your state, then clear your chat or end your session where your platform lets you; otherwise put needs: clear in your report and wait. The coordinator (with the team model, your manager), or the owner, restarts you with your first message and next item (with the team model, "go read project" first).
A hotfix
A production problem that can't wait for the release: branch from {production_branch} and claim it with a draft PR against it. Everything else (roll back first, the one review, who merges, the merge-back PR you open the same day, the incident note) is in {docs.contributing}, "Production problems".
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/slice/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mendloop-co/crewline/slice)