Skip to content
Skills Library
Programming · Building & coding

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.

Repository
syncpack ↗
Licence
MIT
Last repository change
09.08.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.08.2026, without references to retired models or APIs.

Licence

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

  1. Quick Decision
  2. Prerequisites
  3. Feature Types
  4. Common Workflow
  5. Checklist
Original SKILL.md headings · 72 lines, 264 words
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

RepositoryScoreLicence
This page · JamieMason/syncpack90MIT
nvidia/nvcf100Apache-2.0
gosodax/sodax-sdks100MIT
opusgamelabs/game-creator100MIT
Q-Sharp/CloudGround100MIT
fullstackhero/dotnet-starter-kit100MIT
ialameh/sift-coder100MIT
onewave-ai/open-agent-stack90MIT
gazi-faysal-jubayer/shapebridge86Apache-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.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.