add-feature
/add-feature
Add new features to Syncpack including commands and validation logic. Use when implementing new CLI commands, adding InstanceState variants, or extending version group behaviour.
- Author
- JamieMason ↗
- Repository
- syncpack ↗
- Licence
- MIT
- Last repository change
- 09.08.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 09.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Add new features to Syncpack including commands and validation logic. Use when implementing new CLI commands, adding InstanceState variants, or extending version group behaviour.
Original author description
Add new features to Syncpack including commands and validation logic. Use when implementing new CLI commands, adding InstanceState variants, or extending version group behaviour.
How it works
- Quick Decision
- Prerequisites
- Feature Types
- Common Workflow
- Checklist
SKILL.md preview
--- name: add-feature description: Add new features to Syncpack including commands and validation logic. Use when implementing new CLI commands, adding InstanceState variants, or extending version group behaviour. --- # Add Feature Guide for adding new functionality to Syncpack. ## Quick Decision What are you adding? - **New CLI command** (lint, fix, format, etc.) → See [adding-command.md](adding-command.md) - **New validation logic** (InstanceState variant) → See [adding-instance-state.md](adding-instance-state.md) - **Both** → Start with instance state, then add command ## Prerequisites Before adding any feature: 1. Understand the 3-phase pattern: Create Context → Inspect Context → Run Command 2. Know which phase your feature affects 3. Check if similar code exists (use `ast-grep -p 'PATTERN' src/`) ## Feature Types ### Commands Commands are user-facing operations (`syncpack lint`, `syncpack fix`, etc.). **When to create a new command:** - New user-facing operation that doesn't fit existing commands - Different output format or behaviour needed **Registration points (all three required):** 1. `src/cli.rs` - Add to `Subcommand` enum 2. `src/main.rs` - Add match arm for dispatch 3. `src/commands/*.rs` - Implement `pub fn run(ctx: Context) -> i32` → Full guide: [adding-command.md](adding-command.md) ### Instance States InstanceState variants describe validation results (valid, fixable, unfixable, suspect). **When to add a new state:** - New validation rule needed - New type of error/warning to report - New auto-fix capability **Location:** `src/instance_state.rs` + `src/visit_packages/*.rs` → Full guide: [adding-instance-state.md](adding-instance-state.md) ## Common Workflow 1. Write failing test using TestBuilder 2. Implement minimal code to pass 3. Run `cargo clippy` and fix warnings 4. Refactor if needed 5. Update documentation ## Checklist Before submitting: - [ ] Tests pass (`just test`) - [ ] Zero clippy warnings - [ ] Follows existing patterns - [ ] Registered in all required places (for commands) - [ ] Uses TDD approach
Files in this package (3)
- SKILL.md 2 KB
- adding-command.md 8 KB
- adding-instance-state.md 11 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · JamieMason/syncpack | 90 | MIT |
| nvidia/nvcf | 100 | Apache-2.0 |
| gosodax/sodax-sdks | 100 | MIT |
| opusgamelabs/game-creator | 100 | MIT |
| Q-Sharp/CloudGround | 100 | MIT |
| fullstackhero/dotnet-starter-kit | 100 | MIT |
| ialameh/sift-coder | 100 | MIT |
| onewave-ai/open-agent-stack | 90 | MIT |
| gazi-faysal-jubayer/shapebridge | 86 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version da77a8454ebd (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95syncpack-version-groups
Use when defining version policies, banning dependencies, pinning versions, or creating partitioned version groups in syncpack. Covers advanced version management patterns. - 100document-code
Add and update the documentation website for Syncpack. Use when making user-facing changes to the codebase. - 100syncpack-configuration
Use when setting up or configuring syncpack for a monorepo. Covers configuration files, workspace detection, and custom rule definitions for dependency version management. - 100add-command
Guide for adding new CLI commands or subcommands to todoist-cli. Use when implementing new SDK endpoints, adding subcommands to existing command groups, or extending CLI functionality. - 100monorepo-deps
End-to-end syncpack + manypkg flow for an npm monorepo: check, fix, update, and maintain `.syncpackrc.json`. Trigger on /monorepo-deps, "update deps", "sync deps", "check deps", "fix syncpackrc", "create syncpackrc", or "my lock file is out of sync". Use syncpack-usage /… - 100review-docs
Review and improve Syncpack documentation for clarity, completeness, and consistency. Use when enhancing docs or validating before publication.