@mrciphersmith/keryx 0.2.98 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4057 -2510
- package/dist/core.js +39 -1
- package/package.json +1 -1
- package/src/gdskills/bundled/rules/core/cli-interface-design.mdc +237 -0
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +116 -0
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +101 -11
- package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +9 -2
- package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +42 -5
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +19 -3
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +20 -4
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +32 -9
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +18 -4
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +21 -5
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +42 -2
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +23 -9
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +33 -31
- package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +32 -1
- package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +32 -2
- package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +14 -2
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +29 -7
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +32 -6
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +20 -3
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +31 -4
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +26 -2
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/quality/api-truth/SKILL.md +226 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +26 -3
- package/src/gdskills/bundled/skills/quality/deprecation-path/SKILL.md +268 -0
- package/src/gdskills/bundled/skills/quality/fresh-eyes/SKILL.md +190 -0
- package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +29 -8
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +25 -2
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/root-cause/SKILL.md +204 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +17 -2
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +40 -5
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +41 -1
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +44 -2
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +44 -4
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +2 -3
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +37 -3
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +2 -4
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +3 -5
- package/src/gdskills/bundled/skills/review/review-layout/SKILL.md +23 -2
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +9 -29
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +9 -9
- package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +3 -2
- package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +33 -2
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +4 -2
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +40 -2
- package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +0 -668
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +0 -90
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +0 -90
- package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +0 -187
- package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +0 -187
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +0 -105
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +0 -105
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +0 -193
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +0 -87
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +0 -87
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +0 -100
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +0 -100
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +0 -84
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +0 -84
- package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +0 -81
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +0 -81
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +0 -70
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +0 -70
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +0 -83
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +0 -83
- package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +0 -378
- package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +0 -52
- package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +0 -52
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +0 -108
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +0 -108
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +0 -80
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +0 -80
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +0 -345
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +0 -203
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +0 -243
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +0 -259
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +0 -168
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: changelog
|
|
3
|
-
description: "Use when generating a changelog, release notes, or summarizing what changed between tags, versions, or date ranges."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/changelog"
|
|
6
|
-
- "Generate changelog"
|
|
7
|
-
- "What changed since"
|
|
8
|
-
- "Release notes"
|
|
9
|
-
- "What's new"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Changelog Generator
|
|
19
|
-
|
|
20
|
-
Generate structured changelog from git history.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/changelog` — latest tag to HEAD
|
|
25
|
-
- `/changelog v1.0..v2.0` — between tags
|
|
26
|
-
- `/changelog --since 2024-01-01` — since date
|
|
27
|
-
- `/changelog --output <file>` — write to file
|
|
28
|
-
- `/changelog --prepend` — prepend to existing CHANGELOG.md
|
|
29
|
-
- `/changelog --format compact` — one-liner per change
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Step 1: Determine Range
|
|
34
|
-
1. `git tag --sort=-version:refname` — list recent tags
|
|
35
|
-
2. Default: from latest tag to HEAD
|
|
36
|
-
3. Between tags or since date if specified
|
|
37
|
-
|
|
38
|
-
### Step 2: Collect Commits
|
|
39
|
-
```bash
|
|
40
|
-
git log <range> --pretty=format:"%H|%s|%an|%ad" --date=short
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Step 3: Parse & Classify
|
|
44
|
-
|
|
45
|
-
| Prefix | Section |
|
|
46
|
-
|--------|---------|
|
|
47
|
-
| feat: | Features |
|
|
48
|
-
| fix: | Bug Fixes |
|
|
49
|
-
| perf: | Performance |
|
|
50
|
-
| refactor: | Refactoring |
|
|
51
|
-
| docs: | Documentation |
|
|
52
|
-
| test: | Tests |
|
|
53
|
-
| chore: | Maintenance |
|
|
54
|
-
| BREAKING CHANGE | Breaking Changes |
|
|
55
|
-
|
|
56
|
-
Extract scope, PR references `(#123)`, issue references `fixes #456`.
|
|
57
|
-
|
|
58
|
-
### Step 4: Enrich (optional)
|
|
59
|
-
If `gh` CLI available: fetch PR titles for merge commits, get authors and labels.
|
|
60
|
-
|
|
61
|
-
### Step 5: Generate Output
|
|
62
|
-
|
|
63
|
-
```markdown
|
|
64
|
-
# Changelog
|
|
65
|
-
|
|
66
|
-
## [v1.3.0] - 2024-03-15
|
|
67
|
-
|
|
68
|
-
### Breaking Changes
|
|
69
|
-
- **auth**: Remove deprecated OAuth1 support (#234)
|
|
70
|
-
|
|
71
|
-
### Features
|
|
72
|
-
- **api**: Add batch processing endpoint (#220)
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
- **db**: Fix connection pool leak under load (#228)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Rules
|
|
79
|
-
|
|
80
|
-
- Deduplicate identical commit messages
|
|
81
|
-
- Skip merge commits (use PR title instead)
|
|
82
|
-
- If no conventional commits found, fall back to plain list by date
|
|
83
|
-
- Breaking changes always go first
|
|
84
|
-
- One line per change
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "Use when committing code changes and a well-structured conventional commit message is needed, with optional amend or selective staging."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/commit"
|
|
6
|
-
- "Commit changes"
|
|
7
|
-
- "Commit this"
|
|
8
|
-
- "Save changes"
|
|
9
|
-
metadata:
|
|
10
|
-
author: "MrCipherSmith"
|
|
11
|
-
version: "1.0.0"
|
|
12
|
-
category: "quality"
|
|
13
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
14
|
-
license: "MIT"
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Smart Commit
|
|
18
|
-
|
|
19
|
-
Create well-structured git commits from current changes.
|
|
20
|
-
|
|
21
|
-
## Workflow
|
|
22
|
-
|
|
23
|
-
### Phase 1: Analyze Changes
|
|
24
|
-
1. Run `git status` and `git diff --staged` and `git diff` to understand all changes
|
|
25
|
-
2. Run `git log --oneline -5` to match the repo's commit message style
|
|
26
|
-
3. Check for conventional commit patterns in history
|
|
27
|
-
|
|
28
|
-
### Phase 2: Stage Files
|
|
29
|
-
If nothing is staged, intelligently stage relevant files:
|
|
30
|
-
- Stage modified and new files that are part of the logical change
|
|
31
|
-
- **NEVER** stage `.env`, credentials, secrets, or large binary files
|
|
32
|
-
- Stage explicit pathspecs (`git add <specific files>`); **NEVER** `git add -A`, `--all`, or `.`
|
|
33
|
-
- Ask the user before staging untracked files that look unrelated to recent work
|
|
34
|
-
|
|
35
|
-
### Phase 3: Generate Commit Message
|
|
36
|
-
Analyze the diff and generate a concise commit message:
|
|
37
|
-
- First line: `<type>(<scope>): <description>` (under 72 chars)
|
|
38
|
-
- Types: `feat:`, `fix:`, `refactor:`, `test:`, `docs:`, `chore:`, `style:`, `perf:`
|
|
39
|
-
- Optional body: explain "why" not "what" (the diff shows "what")
|
|
40
|
-
- **NEVER** add "Co-Authored-By" or any co-authorship lines
|
|
41
|
-
|
|
42
|
-
### Phase 4: Commit
|
|
43
|
-
Create the commit using heredoc format:
|
|
44
|
-
```bash
|
|
45
|
-
git commit -m "$(cat <<'EOF'
|
|
46
|
-
type(scope): description
|
|
47
|
-
EOF
|
|
48
|
-
)"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Phase 5: Verify
|
|
52
|
-
Show the result: `git log --oneline -1` and `git status`
|
|
53
|
-
|
|
54
|
-
## Arguments
|
|
55
|
-
|
|
56
|
-
- `/commit` — auto-generate message from diff
|
|
57
|
-
- `/commit <message>` — use provided message as-is
|
|
58
|
-
- `/commit --amend` — amend the last commit (only when explicitly requested)
|
|
59
|
-
- `/commit -a` — stage all modified files before committing
|
|
60
|
-
|
|
61
|
-
## Rules
|
|
62
|
-
|
|
63
|
-
- NEVER use `--no-verify` or skip hooks
|
|
64
|
-
- NEVER add Co-Authored-By lines
|
|
65
|
-
- If pre-commit hook fails: fix the issue, re-stage, create a NEW commit (don't amend)
|
|
66
|
-
- Follow existing commit message conventions in the repository
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "Use when committing code changes and a well-structured conventional commit message is needed, with optional amend or selective staging."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/commit"
|
|
6
|
-
- "Commit changes"
|
|
7
|
-
- "Commit this"
|
|
8
|
-
- "Save changes"
|
|
9
|
-
metadata:
|
|
10
|
-
author: "MrCipherSmith"
|
|
11
|
-
version: "1.0.0"
|
|
12
|
-
category: "quality"
|
|
13
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
14
|
-
license: "MIT"
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Smart Commit
|
|
18
|
-
|
|
19
|
-
Create well-structured git commits from current changes.
|
|
20
|
-
|
|
21
|
-
## Workflow
|
|
22
|
-
|
|
23
|
-
### Phase 1: Analyze Changes
|
|
24
|
-
1. Run `git status` and `git diff --staged` and `git diff` to understand all changes
|
|
25
|
-
2. Run `git log --oneline -5` to match the repo's commit message style
|
|
26
|
-
3. Check for conventional commit patterns in history
|
|
27
|
-
|
|
28
|
-
### Phase 2: Stage Files
|
|
29
|
-
If nothing is staged, intelligently stage relevant files:
|
|
30
|
-
- Stage modified and new files that are part of the logical change
|
|
31
|
-
- **NEVER** stage `.env`, credentials, secrets, or large binary files
|
|
32
|
-
- Stage explicit pathspecs (`git add <specific files>`); **NEVER** `git add -A`, `--all`, or `.`
|
|
33
|
-
- Ask the user before staging untracked files that look unrelated to recent work
|
|
34
|
-
|
|
35
|
-
### Phase 3: Generate Commit Message
|
|
36
|
-
Analyze the diff and generate a concise commit message:
|
|
37
|
-
- First line: `<type>(<scope>): <description>` (under 72 chars)
|
|
38
|
-
- Types: `feat:`, `fix:`, `refactor:`, `test:`, `docs:`, `chore:`, `style:`, `perf:`
|
|
39
|
-
- Optional body: explain "why" not "what" (the diff shows "what")
|
|
40
|
-
- **NEVER** add "Co-Authored-By" or any co-authorship lines
|
|
41
|
-
|
|
42
|
-
### Phase 4: Commit
|
|
43
|
-
Create the commit using heredoc format:
|
|
44
|
-
```bash
|
|
45
|
-
git commit -m "$(cat <<'EOF'
|
|
46
|
-
type(scope): description
|
|
47
|
-
EOF
|
|
48
|
-
)"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Phase 5: Verify
|
|
52
|
-
Show the result: `git log --oneline -1` and `git status`
|
|
53
|
-
|
|
54
|
-
## Arguments
|
|
55
|
-
|
|
56
|
-
- `/commit` — auto-generate message from diff
|
|
57
|
-
- `/commit <message>` — use provided message as-is
|
|
58
|
-
- `/commit --amend` — amend the last commit (only when explicitly requested)
|
|
59
|
-
- `/commit -a` — stage all modified files before committing
|
|
60
|
-
|
|
61
|
-
## Rules
|
|
62
|
-
|
|
63
|
-
- NEVER use `--no-verify` or skip hooks
|
|
64
|
-
- NEVER add Co-Authored-By lines
|
|
65
|
-
- If pre-commit hook fails: fix the issue, re-stage, create a NEW commit (don't amend)
|
|
66
|
-
- Follow existing commit message conventions in the repository
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: db-migrate
|
|
3
|
-
description: "Use when creating, applying, rolling back, or checking the status of database migrations."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/db-migrate"
|
|
6
|
-
- "Create migration"
|
|
7
|
-
- "Run migrations"
|
|
8
|
-
- "Migration status"
|
|
9
|
-
- "Rollback migration"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Database Migration
|
|
19
|
-
|
|
20
|
-
Create, apply, and manage database migrations.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/db-migrate create <name>` — create new migration
|
|
25
|
-
- `/db-migrate apply` — apply pending migrations
|
|
26
|
-
- `/db-migrate status` — show migration status
|
|
27
|
-
- `/db-migrate rollback` — rollback last migration
|
|
28
|
-
|
|
29
|
-
## Workflow
|
|
30
|
-
|
|
31
|
-
### Step 1: Detect ORM/Migration Tool
|
|
32
|
-
Search for: `prisma/schema.prisma`, `ormconfig.*`, `data-source.ts`, `knexfile.*`, `.sequelizerc`, `drizzle.config.ts`, `alembic.ini`, `migrations/` with raw SQL.
|
|
33
|
-
|
|
34
|
-
### Step 2: Execute Command
|
|
35
|
-
|
|
36
|
-
**Create:**
|
|
37
|
-
|
|
38
|
-
| Tool | Command |
|
|
39
|
-
|------|---------|
|
|
40
|
-
| Prisma | `npx prisma migrate dev --name <name>` |
|
|
41
|
-
| TypeORM | `npx typeorm migration:generate -n <name>` |
|
|
42
|
-
| Knex | `npx knex migrate:make <name>` |
|
|
43
|
-
| Sequelize | `npx sequelize-cli migration:generate --name <name>` |
|
|
44
|
-
| Drizzle | `npx drizzle-kit generate:migration --name <name>` |
|
|
45
|
-
| Alembic | `alembic revision --autogenerate -m "<name>"` |
|
|
46
|
-
|
|
47
|
-
**Apply / Status / Rollback** — analogous commands per tool.
|
|
48
|
-
|
|
49
|
-
### Step 3: If Creating — Help Write Migration
|
|
50
|
-
1. Ask what schema changes are needed (or infer from context)
|
|
51
|
-
2. For schema-based ORMs — edit schema first, then generate
|
|
52
|
-
3. For code-based migrations — generate template and fill in up/down
|
|
53
|
-
4. Review generated migration before applying
|
|
54
|
-
|
|
55
|
-
### Step 4: Apply & Verify
|
|
56
|
-
1. Show migration SQL preview if possible
|
|
57
|
-
2. Apply migration
|
|
58
|
-
3. Verify with status command
|
|
59
|
-
|
|
60
|
-
## Rules
|
|
61
|
-
|
|
62
|
-
- ALWAYS show migration content before applying in production
|
|
63
|
-
- ALWAYS confirm before rollback operations
|
|
64
|
-
- NEVER apply to production without explicit confirmation
|
|
65
|
-
- For destructive operations (drop table, remove column), double-warn
|
|
66
|
-
- If ORM can't be detected, ask the user
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: db-migrate
|
|
3
|
-
description: "Use when creating, applying, rolling back, or checking the status of database migrations."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/db-migrate"
|
|
6
|
-
- "Create migration"
|
|
7
|
-
- "Run migrations"
|
|
8
|
-
- "Migration status"
|
|
9
|
-
- "Rollback migration"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Database Migration
|
|
19
|
-
|
|
20
|
-
Create, apply, and manage database migrations.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/db-migrate create <name>` — create new migration
|
|
25
|
-
- `/db-migrate apply` — apply pending migrations
|
|
26
|
-
- `/db-migrate status` — show migration status
|
|
27
|
-
- `/db-migrate rollback` — rollback last migration
|
|
28
|
-
|
|
29
|
-
## Workflow
|
|
30
|
-
|
|
31
|
-
### Step 1: Detect ORM/Migration Tool
|
|
32
|
-
Search for: `prisma/schema.prisma`, `ormconfig.*`, `data-source.ts`, `knexfile.*`, `.sequelizerc`, `drizzle.config.ts`, `alembic.ini`, `migrations/` with raw SQL.
|
|
33
|
-
|
|
34
|
-
### Step 2: Execute Command
|
|
35
|
-
|
|
36
|
-
**Create:**
|
|
37
|
-
|
|
38
|
-
| Tool | Command |
|
|
39
|
-
|------|---------|
|
|
40
|
-
| Prisma | `npx prisma migrate dev --name <name>` |
|
|
41
|
-
| TypeORM | `npx typeorm migration:generate -n <name>` |
|
|
42
|
-
| Knex | `npx knex migrate:make <name>` |
|
|
43
|
-
| Sequelize | `npx sequelize-cli migration:generate --name <name>` |
|
|
44
|
-
| Drizzle | `npx drizzle-kit generate:migration --name <name>` |
|
|
45
|
-
| Alembic | `alembic revision --autogenerate -m "<name>"` |
|
|
46
|
-
|
|
47
|
-
**Apply / Status / Rollback** — analogous commands per tool.
|
|
48
|
-
|
|
49
|
-
### Step 3: If Creating — Help Write Migration
|
|
50
|
-
1. Ask what schema changes are needed (or infer from context)
|
|
51
|
-
2. For schema-based ORMs — edit schema first, then generate
|
|
52
|
-
3. For code-based migrations — generate template and fill in up/down
|
|
53
|
-
4. Review generated migration before applying
|
|
54
|
-
|
|
55
|
-
### Step 4: Apply & Verify
|
|
56
|
-
1. Show migration SQL preview if possible
|
|
57
|
-
2. Apply migration
|
|
58
|
-
3. Verify with status command
|
|
59
|
-
|
|
60
|
-
## Rules
|
|
61
|
-
|
|
62
|
-
- ALWAYS show migration content before applying in production
|
|
63
|
-
- ALWAYS confirm before rollback operations
|
|
64
|
-
- NEVER apply to production without explicit confirmation
|
|
65
|
-
- For destructive operations (drop table, remove column), double-warn
|
|
66
|
-
- If ORM can't be detected, ask the user
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: dependency-update
|
|
3
|
-
description: "Use when checking for outdated packages or upgrading dependencies with compatibility verification."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/dependency-update"
|
|
6
|
-
- "Update dependencies"
|
|
7
|
-
- "Upgrade packages"
|
|
8
|
-
- "Check outdated"
|
|
9
|
-
- "Update npm packages"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Dependency Update
|
|
19
|
-
|
|
20
|
-
Safely update project dependencies with compatibility checks.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/dependency-update` — check and propose updates
|
|
25
|
-
- `/dependency-update --patch` — only patch updates (safe)
|
|
26
|
-
- `/dependency-update --minor` — patch + minor
|
|
27
|
-
- `/dependency-update --all` — all including major
|
|
28
|
-
- `/dependency-update --dry-run` — show what would update
|
|
29
|
-
- `/dependency-update <package>` — update specific package
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Step 1: Check Outdated
|
|
34
|
-
```bash
|
|
35
|
-
npm outdated --json
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Step 2: Classify by Risk
|
|
39
|
-
|
|
40
|
-
| Type | Risk | Action |
|
|
41
|
-
|------|------|--------|
|
|
42
|
-
| Patch (1.0.0 → 1.0.1) | Low | Batch update |
|
|
43
|
-
| Minor (1.0.0 → 1.1.0) | Medium | Update & test |
|
|
44
|
-
| Major (1.0.0 → 2.0.0) | High | One-by-one with tests |
|
|
45
|
-
|
|
46
|
-
### Step 3: Present Update Plan
|
|
47
|
-
Show grouped list with risk levels. Get user confirmation.
|
|
48
|
-
|
|
49
|
-
### Step 4: Execute
|
|
50
|
-
|
|
51
|
-
**Patch (batch):** `npm update`
|
|
52
|
-
|
|
53
|
-
**Minor (batch):** `npm install pkg1@latest pkg2@latest && npm test`
|
|
54
|
-
|
|
55
|
-
**Major (one at a time):**
|
|
56
|
-
1. Check changelog/migration guide
|
|
57
|
-
2. `npm install <package>@latest`
|
|
58
|
-
3. Run lint + type-check + tests
|
|
59
|
-
4. If fails (max 2 fix tries) → rollback
|
|
60
|
-
5. If passes → commit: `chore(deps): update <package> to v<version>`
|
|
61
|
-
|
|
62
|
-
### Step 5: Post-update Verification
|
|
63
|
-
```bash
|
|
64
|
-
npm run lint && npx tsc --noEmit && npm test && npm run build
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Step 6: Report
|
|
68
|
-
```
|
|
69
|
-
✅ Updated: 15 packages (10 patch, 4 minor, 1 major)
|
|
70
|
-
⚠️ Skipped: 2 packages (tests fail)
|
|
71
|
-
📋 Commits: 3
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Rules
|
|
75
|
-
|
|
76
|
-
- NEVER update all major versions at once — one by one
|
|
77
|
-
- ALWAYS run tests after each major update
|
|
78
|
-
- Rollback if tests fail
|
|
79
|
-
- Commit each group separately
|
|
80
|
-
- Respect pinned versions
|
|
81
|
-
- Check peer dependency warnings
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: dependency-update
|
|
3
|
-
description: "Use when checking for outdated packages or upgrading dependencies with compatibility verification."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/dependency-update"
|
|
6
|
-
- "Update dependencies"
|
|
7
|
-
- "Upgrade packages"
|
|
8
|
-
- "Check outdated"
|
|
9
|
-
- "Update npm packages"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Dependency Update
|
|
19
|
-
|
|
20
|
-
Safely update project dependencies with compatibility checks.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/dependency-update` — check and propose updates
|
|
25
|
-
- `/dependency-update --patch` — only patch updates (safe)
|
|
26
|
-
- `/dependency-update --minor` — patch + minor
|
|
27
|
-
- `/dependency-update --all` — all including major
|
|
28
|
-
- `/dependency-update --dry-run` — show what would update
|
|
29
|
-
- `/dependency-update <package>` — update specific package
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Step 1: Check Outdated
|
|
34
|
-
```bash
|
|
35
|
-
npm outdated --json
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Step 2: Classify by Risk
|
|
39
|
-
|
|
40
|
-
| Type | Risk | Action |
|
|
41
|
-
|------|------|--------|
|
|
42
|
-
| Patch (1.0.0 → 1.0.1) | Low | Batch update |
|
|
43
|
-
| Minor (1.0.0 → 1.1.0) | Medium | Update & test |
|
|
44
|
-
| Major (1.0.0 → 2.0.0) | High | One-by-one with tests |
|
|
45
|
-
|
|
46
|
-
### Step 3: Present Update Plan
|
|
47
|
-
Show grouped list with risk levels. Get user confirmation.
|
|
48
|
-
|
|
49
|
-
### Step 4: Execute
|
|
50
|
-
|
|
51
|
-
**Patch (batch):** `npm update`
|
|
52
|
-
|
|
53
|
-
**Minor (batch):** `npm install pkg1@latest pkg2@latest && npm test`
|
|
54
|
-
|
|
55
|
-
**Major (one at a time):**
|
|
56
|
-
1. Check changelog/migration guide
|
|
57
|
-
2. `npm install <package>@latest`
|
|
58
|
-
3. Run lint + type-check + tests
|
|
59
|
-
4. If fails (max 2 fix tries) → rollback
|
|
60
|
-
5. If passes → commit: `chore(deps): update <package> to v<version>`
|
|
61
|
-
|
|
62
|
-
### Step 5: Post-update Verification
|
|
63
|
-
```bash
|
|
64
|
-
npm run lint && npx tsc --noEmit && npm test && npm run build
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Step 6: Report
|
|
68
|
-
```
|
|
69
|
-
✅ Updated: 15 packages (10 patch, 4 minor, 1 major)
|
|
70
|
-
⚠️ Skipped: 2 packages (tests fail)
|
|
71
|
-
📋 Commits: 3
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Rules
|
|
75
|
-
|
|
76
|
-
- NEVER update all major versions at once — one by one
|
|
77
|
-
- ALWAYS run tests after each major update
|
|
78
|
-
- Rollback if tests fail
|
|
79
|
-
- Commit each group separately
|
|
80
|
-
- Respect pinned versions
|
|
81
|
-
- Check peer dependency warnings
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deploy
|
|
3
|
-
description: "Use when deploying to any environment (staging, production) or when a deployment pipeline needs to run."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/deploy"
|
|
6
|
-
- "Deploy to"
|
|
7
|
-
- "Push to production"
|
|
8
|
-
- "Deploy staging"
|
|
9
|
-
- "Ship it"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Deploy
|
|
19
|
-
|
|
20
|
-
Automated deployment pipeline with pre-flight checks.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/deploy` — deploy to staging (default)
|
|
25
|
-
- `/deploy production` — deploy to production (requires confirmation)
|
|
26
|
-
- `/deploy --skip-tests` — skip test phase
|
|
27
|
-
- `/deploy --dry-run` — show what would happen without executing
|
|
28
|
-
- `/deploy <env> --rollback` — rollback to previous version
|
|
29
|
-
|
|
30
|
-
## Workflow
|
|
31
|
-
|
|
32
|
-
### Phase 1: Detect Project Type & Deploy Target
|
|
33
|
-
1. Read `package.json`, `docker-compose.yml`, `Dockerfile`, `vercel.json`, `railway.json`, `ecosystem.config.js`, `Makefile`
|
|
34
|
-
2. Detect stack: Node/Bun/Python/Go/Docker
|
|
35
|
-
3. Detect deploy target: Docker Compose, PM2, SSH, Vercel, Railway, custom script
|
|
36
|
-
4. Determine environment from argument (default: staging)
|
|
37
|
-
|
|
38
|
-
### Phase 2: Pre-flight Checks
|
|
39
|
-
Run in parallel where possible:
|
|
40
|
-
1. **Git status**: working tree clean (warn if dirty)
|
|
41
|
-
2. **Branch check**: correct branch for target env (production → main/master)
|
|
42
|
-
3. **Tests**: `npm test` / `pytest` / `go test ./...` (skip with `--skip-tests`)
|
|
43
|
-
4. **Lint**: `npm run lint` if available
|
|
44
|
-
5. **Type-check**: `npx tsc --noEmit` if TypeScript
|
|
45
|
-
6. **Build**: `npm run build` / `docker build`
|
|
46
|
-
|
|
47
|
-
If any check fails → stop and report.
|
|
48
|
-
|
|
49
|
-
### Phase 3: Deploy
|
|
50
|
-
|
|
51
|
-
| Target | Command |
|
|
52
|
-
|--------|---------|
|
|
53
|
-
| Docker Compose | `docker compose build && docker compose up -d` |
|
|
54
|
-
| PM2 | `pm2 reload ecosystem.config.js --env <env>` |
|
|
55
|
-
| SSH | `ssh <host> "cd <path> && git pull && npm install && npm run build && pm2 reload all"` |
|
|
56
|
-
| Vercel | `vercel --prod` or `vercel` (preview) |
|
|
57
|
-
| Custom | `npm run deploy:<env>` or `make deploy` |
|
|
58
|
-
|
|
59
|
-
### Phase 4: Post-deploy Verification
|
|
60
|
-
1. Health check: curl the health endpoint
|
|
61
|
-
2. Check logs for startup errors
|
|
62
|
-
3. Report: deployed version, environment, status
|
|
63
|
-
|
|
64
|
-
## Rules
|
|
65
|
-
|
|
66
|
-
- ALWAYS require explicit confirmation for production deploys
|
|
67
|
-
- NEVER deploy with failing tests (unless `--skip-tests`)
|
|
68
|
-
- NEVER deploy from dirty working tree without warning
|
|
69
|
-
- Show summary before deploying: branch, env, target, version
|
|
70
|
-
- If deploy target can't be detected, ask the user
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deploy
|
|
3
|
-
description: "Use when deploying to any environment (staging, production) or when a deployment pipeline needs to run."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/deploy"
|
|
6
|
-
- "Deploy to"
|
|
7
|
-
- "Push to production"
|
|
8
|
-
- "Deploy staging"
|
|
9
|
-
- "Ship it"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "quality"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Deploy
|
|
19
|
-
|
|
20
|
-
Automated deployment pipeline with pre-flight checks.
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
|
|
24
|
-
- `/deploy` — deploy to staging (default)
|
|
25
|
-
- `/deploy production` — deploy to production (requires confirmation)
|
|
26
|
-
- `/deploy --skip-tests` — skip test phase
|
|
27
|
-
- `/deploy --dry-run` — show what would happen without executing
|
|
28
|
-
- `/deploy <env> --rollback` — rollback to previous version
|
|
29
|
-
|
|
30
|
-
## Workflow
|
|
31
|
-
|
|
32
|
-
### Phase 1: Detect Project Type & Deploy Target
|
|
33
|
-
1. Read `package.json`, `docker-compose.yml`, `Dockerfile`, `vercel.json`, `railway.json`, `ecosystem.config.js`, `Makefile`
|
|
34
|
-
2. Detect stack: Node/Bun/Python/Go/Docker
|
|
35
|
-
3. Detect deploy target: Docker Compose, PM2, SSH, Vercel, Railway, custom script
|
|
36
|
-
4. Determine environment from argument (default: staging)
|
|
37
|
-
|
|
38
|
-
### Phase 2: Pre-flight Checks
|
|
39
|
-
Run in parallel where possible:
|
|
40
|
-
1. **Git status**: working tree clean (warn if dirty)
|
|
41
|
-
2. **Branch check**: correct branch for target env (production → main/master)
|
|
42
|
-
3. **Tests**: `npm test` / `pytest` / `go test ./...` (skip with `--skip-tests`)
|
|
43
|
-
4. **Lint**: `npm run lint` if available
|
|
44
|
-
5. **Type-check**: `npx tsc --noEmit` if TypeScript
|
|
45
|
-
6. **Build**: `npm run build` / `docker build`
|
|
46
|
-
|
|
47
|
-
If any check fails → stop and report.
|
|
48
|
-
|
|
49
|
-
### Phase 3: Deploy
|
|
50
|
-
|
|
51
|
-
| Target | Command |
|
|
52
|
-
|--------|---------|
|
|
53
|
-
| Docker Compose | `docker compose build && docker compose up -d` |
|
|
54
|
-
| PM2 | `pm2 reload ecosystem.config.js --env <env>` |
|
|
55
|
-
| SSH | `ssh <host> "cd <path> && git pull && npm install && npm run build && pm2 reload all"` |
|
|
56
|
-
| Vercel | `vercel --prod` or `vercel` (preview) |
|
|
57
|
-
| Custom | `npm run deploy:<env>` or `make deploy` |
|
|
58
|
-
|
|
59
|
-
### Phase 4: Post-deploy Verification
|
|
60
|
-
1. Health check: curl the health endpoint
|
|
61
|
-
2. Check logs for startup errors
|
|
62
|
-
3. Report: deployed version, environment, status
|
|
63
|
-
|
|
64
|
-
## Rules
|
|
65
|
-
|
|
66
|
-
- ALWAYS require explicit confirmation for production deploys
|
|
67
|
-
- NEVER deploy with failing tests (unless `--skip-tests`)
|
|
68
|
-
- NEVER deploy from dirty working tree without warning
|
|
69
|
-
- Show summary before deploying: branch, env, target, version
|
|
70
|
-
- If deploy target can't be detected, ask the user
|