Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add sirius-cc-wu/sirius-skills --skill "implement"
Install specific skill from multi-skill repository
# Description
Executes a detailed implementation plan (plan.md) to build or modify code. This skill is typically activated by the spec-driver skill after a plan has been created by the plan skill. Use this to write code, run tests, and verify implementation against a spec.
# SKILL.md
name: implement
description: Executes a detailed implementation plan (plan.md) to build or modify code. This skill is typically activated by the spec-driver skill after a plan has been created by the plan skill. Use this to write code, run tests, and verify implementation against a spec.
Skill: Implement
This skill provides a structured approach for implementing software engineering tasks such as adding features, fixing bugs, or refactoring code, based on a provided specification and plan.
Core Mandates
- Conventions: Rigorously adhere to existing project conventions when reading or modifying code. Analyze surrounding code, tests, and configuration first.
- Libraries/Frameworks: NEVER assume a library/framework is available or appropriate. Verify its established usage within the project (check imports, configuration files like 'package.json', 'Cargo.toml', 'requirements.txt', 'build.gradle', etc., or observe neighboring files) before employing it.
- Style & Structure: Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
- Idiomatic Changes: When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
- Comments: Add code comments sparingly. Focus on why something is done, especially for complex logic, rather than what is done.
- Proactiveness: Fulfill the user's request thoroughly. When adding features or fixing bugs, this includes adding tests to ensure quality.
- Confirm Ambiguity/Expansion: Do not take significant actions beyond the clear scope of the request without confirming with the user.
Workflow
This skill is activated by the spec-driver when a plan.md is ready for implementation.
- Understand: Review the
plan.mdto fully grasp the implementation steps. Use thespec.mdas a reference for the overall requirements. - Implement & Verify (Iteratively):
- Work through the
plan.mdtask by task. - Mark a task as
in_progressin theplan.mdbefore starting. - Write code and unit/integration tests for the task.
- Verify the changes using the project's testing, linting, and build procedures.
- Once a task is fully verified, mark it as complete (
[x]) in theplan.md.
- Work through the
- Finalize:
- After all tasks in the
plan.mdare complete, run all project verification steps (tests, lint, build) one last time. - Use the
commitskill to save the changes. - Notify the
spec-driverthat implementation is complete.
- After all tasks in the
Resource Usage
read_file: To understand existing code and theplan.md/spec.md.write_file/replace: For modifying code and creating new files (including tests).run_shell_command: For executing build, test, and linting commands.commit: To finalize changes.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.