Coordinates development tasks with ten named skills and advisory input/output contracts, plus a linter for contract and workflow checks, without runtime enforcement.
refactor: restructure without behavior changes
Proposes a cleanup diff, waits for approval unless --auto is set, then applies changes intended to preserve observable behavior.
Source facts
- Repository
- adventurewave-labs/apsl-core
- Last source activity
- July 7, 2026 at 01:25
- Detected SKILL.md language
- English
- Stars
- 0
- Forks
- 0
Uses
Use for duplication, naming, extraction, reorganization, or readability work. The contract produces a pipeable diff and consumes none. If a change would alter behavior, the workflow says to flag it and ask.
Prerequisites
Provide a required target path. Optional --goal narrows the work and --scope is function|file|module. --auto defaults to false. Declared tools are Read, Write, git diff, and git status through Bash. Install via the HEAD README command npx skills add adventurewave-labs/apsl-core, or copy the relevant skills into your host skill directory. This is a documented install route, not a command tested here. Invocation uses host slash commands or description-triggered natural language, not a new APSL syntax. The optional apsl-lint CLI needs Node >=18; it is not required to execute these prose instructions and its warnings do not enforce agent behavior.
How to use
Give the target and optional goal or scope through your host. The workflow reads the implementation and git diff HEAD, looks for cleanup opportunities, and shows a unified diff first. Unless --auto is set, it waits for approval, then applies changes and verifies a test suite if one exists.
Limitations
This modifies source files. Preserving observable behavior is the instruction, not an executed equivalence proof. --auto bypasses the normal diff-first approval wait, but the separate instruction to flag behavior changes still applies. The body asks for test-suite verification, while the allowed-tools list names no general test command; the host must supply any additional required permission. No external service, key, upload, or privacy and retention policy for source is declared. These are agent instructions and advisory I/O declarations, not an executable runtime or enforced contracts. Actual actions depend on the host tools and permissions; they were not run here. MIT, copyright 2026 Marcus Patman: retain the copyright and permission notice; no warranty. This draft pins HEAD. Its ten Skill files equal v0.3.0; only the README install source and added banner/landing docs differ from that tag.
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
| name | refactor |
|---|---|
| description | Improve code quality, structure, or readability without changing observable behavior. Use for cleanup, DRY improvements, naming, extraction, reorganization. Supports --goal "description", --scope function|file|module, --auto. |