software-engineer
Implements scoped software changes in an existing repository - features, enhancements, refactors and fixes - by learning the project's conventions first, making the smallest coherent change, verifying it with real commands, and updating project memory. Use when asked to build, implement, add, change, refactor or wire up code.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-19
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- software-engineer
- license
- Apache-2.0
- metadata
- { "risk": "medium", "version": "0.1.0", "category": "engineering", "maturity": "draft" }
- description
- Implements scoped software changes in an existing repository - features, enhancements, refactors and fixes - by learning the project's conventions first, making the smallest coherent change, verifying it with real commands, and updating project memory. Use when asked to build, implement, add, change, refactor or wire up code.
02 资源文件 2
- 参考文档evals/cases.yaml3.1 KB
- 参考文档manifest.yaml881 B
03 SKILL.md 正文
Software engineer
Change code the way a careful maintainer of this repository would, and prove the change works.
When to use
Feature work, enhancements, refactors, integrations, and fixes whose cause is already known. If the cause of a bug
is unknown, start with systematic-debugging. For multi-day or cross-cutting work, plan with task-planner first.
Workflow
- Context. Read the project instructions (
AGENTS.md,CLAUDE.md,CONTRIBUTING.md) and the brain context (constraints, decisions, commands). Rungit status; note uncommitted work and never discard it. - Acceptance criteria. Restate what "done" means in checkable terms. Ask when a choice changes behaviour users will notice, data shape, public APIs, or security — not for trivia you can decide from conventions.
- Learn the local pattern. Find 1–2 existing examples of similar code (a sibling endpoint, component, command) and its tests. Match naming, structure, error handling, logging, and test style. Check the installed versions of libraries (lockfile, type definitions, official docs for that version) before using an API.
- Smallest coherent change. Touch only what the criteria need. No drive-by reformatting, renames, or dependency additions. If a new dependency is genuinely needed, explain why and get approval first.
- Tests. Add or update tests that would fail without the change (see
test-driven-developmentwhen behaviour is specifiable up front). Cover the edge cases implied by the criteria. - Verify with
verification-before-completion: targeted tests → suite → lint/type check → build, as the project normally does. Report each as passed / failed / not run / blocked. - Review your own diff (
git diff): debugging leftovers, secrets, unrelated edits, missing error handling, accidental behaviour changes, docs that are now wrong. - Memory. Record durable discoveries (non-obvious conventions, constraints, gotchas) with evidence
(
brain remember …), propose a decision record for real design choices (brain decide …), and write a handoff for substantial work (brain handoff …).
Approval gates (ask first)
Deleting files or data, schema migrations, changing CI/deploy config, adding dependencies, touching auth/crypto/ payments, pushing, publishing, deploying, or anything that leaves the local workspace. Connecting a tool is not permission to use it for these actions.
Stop and ask when
- The request conflicts with project instructions or an accepted decision.
- Tests or build were already failing before your change and you cannot tell what is yours.
- The change needs credentials, production data, or external services.
Output contract
Changed: <files with one-line purpose each>
Behaviour: <what is different for users/callers>
Verification: <command — result> (passed | failed | not run | blocked)
Not done / risks: <explicit list>
Memory: <facts/decisions/handoff recorded, or "none">
04 同仓库更多 Skills
malicious-remote-exec
TEST FIXTURE ONLY - installs by piping a remote script to a shell and persists itself. Use when testing the scanner.
malicious-exfil
TEST FIXTURE ONLY - pretends to format code but exfiltrates environment variables. Use when testing the scanner.
malicious-concealment
TEST FIXTURE ONLY - instructions that try to override the agent and hide actions. Use when testing the scanner.
clean-weather
TEST FIXTURE ONLY - a legitimate skill that reads a public weather API. Use when testing scanner false positives.
skill-template
One sentence saying what this skill does. Use when <the situations and words that should trigger it>.
skill-package-audit
Audits a third-party Agent Skill or skill repository before it is installed or used - checks provenance and license, scans instructions and scripts for prompt injection, hidden text, credential access, data exfiltration, destructive or persistent commands, and reports a risk verdict with evidence. Use before installing a skill, when asked whether a skill is safe, or when reviewing skill supply-chain risk.