You are helping the user commit their staged changes following the vivief development workflow.
Executes a complete commit workflow with validation, message drafting, and changeset management.
/plugin marketplace add pietgk/vivief/plugin install devac@viviefYou are helping the user commit their staged changes following the vivief development workflow.
This workflow uses deterministic CLI commands for validation and structured data, while you handle reasoning and drafting.
devac workflow pre-commit --json
This returns:
ready: Whether ready to commit (no blockers)staged: List of staged filesblockers: Any blocking issuesvalidation.lint.passed: Lint statusvalidation.types.passed: Typecheck statussensitiveFiles: Any sensitive files detectedwarnings: Non-blocking issuesIf not ready: Present blockers to user and ask how to proceed.
If no staged files: Ask if user wants to stage all changes with git add -A.
devac workflow diff-summary --staged --include-content --json
This returns:
files: All changed filesbyPackage: Changes grouped by package with line countsbyCategory: Changes grouped by type (source, tests, docs, config)stats: Overall statisticsdiff: The actual diff contentUse this structured data to understand what changed.
Based on the diff summary, draft a commit message:
type(scope): description
[optional body with more details]
Types:
Scope should be the package name when changes are focused (e.g., core, cli, mcp).
devac workflow check-changeset --json
This returns:
needsChangeset: Whether a changeset is requiredpackagesNeedingChangeset: Which packages need coverageexistingChangesets: Any changesets already on this branchchangesetsCoverAll: Whether existing changesets cover all changed packagesIf needsChangeset is true:
/devac:draft-changeset to create a changesetgit add .changeset/After user approves the message:
git commit -m "$(cat <<'EOF'
type(scope): description
[body if any]
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
Provide a brief summary:
/devac:ship if ready to push and create PRUser: /devac:commit
Claude: Let me run pre-commit validation...
[Runs: devac workflow pre-commit --json]
✓ Validation passed
- 3 files staged
- Lint: pass
- Types: pass
[Runs: devac workflow diff-summary --staged --include-content --json]
Based on the changes in devac-cli/src, I suggest:
feat(cli): add workflow commands for deterministic operations
- Add check-changeset command
- Add pre-commit validation command
- Add diff-summary for structured output
- Add prepare-ship command
- Add install-local command
[Runs: devac workflow check-changeset --json]
⚠️ Changeset needed for @pietgk/devac-cli
This adds new functionality. Should I create a changeset? (yes/no)