skill/implement/SKILL.md
Write tests, docs and code for a Worklog work item by following a deterministic workflow. Ensure implementation meets defined acceptance criteria. Trigger on user queries such as: 'Implement <work-item-id>', 'Complete <work-item-id>', 'Work on <work-item-id>'.
npx skillsauth add sorratheorc/sorraagents implementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provide a deterministic, step-by-step implementation workflow for completing a Worklog work item through the creation of code, tests, and documentation.
<prefix>-<hash> and prompt if
missing.dev).in_review stage (work item is NOT closed; it stays
open until the release process promotes the changes to main).intake, plan.Security note: Do not push or create PRs automatically unless the invoking
agent has explicit permission to push to the repository and open pull
requests. Require explicit confirmation before performing remote actions
(push/pr creation) when operating without an operator-approved credential.
When in doubt, produce the exact git/gh/wl commands for a human to run.
Privacy note: Avoid including secrets, tokens, or personally-identifiable data in work item comments or PR bodies. If such data must be referenced, reference it by work-item id or document path instead of pasting values. Mask or redact any sensitive values before writing them to logs or comments.
main. Always create a feature or bug branch for implementation.feature/WL-123-add-auth).main. Work is integrated into dev; the dev→main promotion is handled separately by the release process.in_review, use the cleanup skill to tidy up local feature branches. Do not clean up dev or main.assets directory (e.g., assets/images/, assets/audio/) and use a name that has the prefix "placeholder_" followed by a descriptive name (e.g., placeholder_player_explosion_spritesheet.png or placeholder_player_jump.wav).
docs directory and reference these changes in the work item comments and PR description.
Execute the following steps in order. Do not skip steps. Use the live commands where applicable and record outputs in the work-item comments as you proceed.
git status --porcelain=v1 -b..worklog/, carry them into the new working branch and commit there.wl update <work-item-id> --status in_progress --stage in_progress --assignee "<AGENT>" --json (omit --assignee if not applicable)./skill:audit <work-item-id> to understand what work has already been done and what remains.wl show <work-item-id> --json and wl show <work-item-id> --json.
description, acceptance criterria and comments1.1. Definition gate (must pass before implementation)
command/intake.md) and update the work item description or acceptance fields with the intake output.command/plan.md) to break it into smaller work items, create those work items, link them as blockers/dependencies, and pick the highest-priority work item to implement next.git rev-parse --abbrev-ref HEAD.feature/<work-item-id>-<short> or bug/<work-item-id>-<short> (include the work item id).main.If the work item has any open or in_progress blockers or dependencies:
wl update <work-item-id> --status in_progress --stage in_progress --assignee "<AGENT>" --jsonwl update <work-item-id> --status in_progress --stage in_review --jsonIf the work item has a recent audit record, review the audit notes and address any unmet acceptance criteria or other issues identified.
If there is no recent audit record, run /skill:audit <work-item-id> and use the resulting audit output to establish the work that needs to be done.
Once the audit selection is complete, continue to step 4 and write tests and code to ensure all acceptance criteria defined in or related to the current work item are met:
wl create "<title>" --deps discovered-from:<work-item-id> --jsonOnce all acceptance criteria for the primary work item and all blockers and dependents are met:
python3 skill/triage/scripts/check_or_create.py '{"test_name":"<name>", "stdout_excerpt":"...", "stack_trace":"..."}'check_or_create returns that it created a NEW critical issue for this run, record the created issue id in the agent's local run-state and DO NOT proceed to create a PR for the current work item while that issue remains open, unless the PR will explicitly reference and close that issue.audit <work-item-id> using the audit skill.
Before committing, follow the mandatory build → test → commit order: build the project and verify no errors, then run all tests and verify they pass, and only then commit changes.
Ensure all work has been committed on the feature branch.
Do NOT create a Pull Request to main. Work is integrated into dev; the dev→main promotion is handled separately by the release process.
Push the feature branch into dev using one of the following:
pushToDev() from skill/ship/scripts/ship.js (preferred)git push origin HEAD:refs/heads/devdev is not a protected branch; the .githooks/pre-push hook only blocks main, master, and HEAD.Add a work-item comment recording the commit hash and that the work has been pushed to dev:
wl comment add <work-item-id> --comment "Completed work pushed to dev, see commit <hash>. The work-item stays open until the release process merges dev to main." --author "<AGENT>" --json
Mark the work item as in_review (do NOT close it):
wl update <work-item-id> --stage in_review --json
Important: The work-item is not closed at this stage. It remains
in_reviewuntil the release process ( ship agent or Release Manager) promotesdevtomain. Agents must never push tomaindirectly. Seeskill/ship/SKILL.mdfor the push-to-dev workflow andskill/ship/scripts/run-release.js(safe wrapper) for the release process. The wrapper detects when a repository lacksscripts/release/merge-dev-to-main.shand prints a clear human fallback message.
dev, inspect the agent-run local state for any NEW critical test-failure issues created during this run. If any exist and remain open, the agent MUST not push to dev for the current work item unless the push explicitly references and closes the created critical issue(s). Pre-existing critical issues (created prior to this agent run) are informational and do not block pushes.development
Canonical push-to-dev and branch-policy enforcement for agents. Provides the push-to-dev workflow, branch naming, conflict handling, and release process guidance. Trigger with: /skill:ship push-to-dev
development
Write tests, docs and code for a single, specific Worklog work item. Unlike the `implement` skill, this skill operates on exactly one work-item without using `wl next` for recursive dependency resolution or sub-task discovery. It is designed to be invoked by Ralph's per-child loop so that each child is implemented, audited, and remediated independently. Trigger on user queries such as: 'implement-single <work-item-id>', 'complete <work-item-id> (single)', or when Ralph delegates a single-child implement step.
testing
Run an iterative implement→audit loop for a target work item. Ralph is a launcher/orchestrator, not the normal Worklog implementation workflow.
development
Infer a suspected owner for a failing test file using CODEOWNERS, git blame, recent commits, and an override map.