@olegkoval/agent-skills 1.5.1 → 1.7.0

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.
Files changed (125) hide show
  1. package/.claude-plugin/plugin.json +3 -2
  2. package/.cursor-plugin/index.json +5 -0
  3. package/.kiro/steering/add-to-my-skills.md +78 -0
  4. package/.kiro/steering/ai-tools-setup.md +263 -0
  5. package/.kiro/steering/changelog-generator.md +106 -0
  6. package/.kiro/steering/cloudflare-block-countries.md +167 -0
  7. package/.kiro/steering/docs-index-keeper.md +53 -0
  8. package/.kiro/steering/fill-music-player.md +101 -0
  9. package/.kiro/steering/gallery.md +228 -0
  10. package/.kiro/steering/gh-cli.md +2190 -0
  11. package/.kiro/steering/git-commit.md +125 -0
  12. package/.kiro/steering/open-source-publisher.md +427 -0
  13. package/.kiro/steering/product-builder.md +213 -0
  14. package/.kiro/steering/promptctl.md +81 -0
  15. package/.kiro/steering/search-console-indexing-audit.md +57 -0
  16. package/.kiro/steering/semantic-release-beta.md +48 -0
  17. package/.kiro/steering/starter-rules.md +62 -0
  18. package/.kiro/steering/viral-launch.md +92 -0
  19. package/.windsurf/rules/add-to-my-skills.md +77 -0
  20. package/.windsurf/rules/ai-tools-setup.md +262 -0
  21. package/.windsurf/rules/changelog-generator.md +105 -0
  22. package/.windsurf/rules/cloudflare-block-countries.md +166 -0
  23. package/.windsurf/rules/docs-index-keeper.md +52 -0
  24. package/.windsurf/rules/fill-music-player.md +100 -0
  25. package/.windsurf/rules/gallery.md +227 -0
  26. package/.windsurf/rules/gh-cli.md +2189 -0
  27. package/.windsurf/rules/git-commit.md +124 -0
  28. package/.windsurf/rules/open-source-publisher.md +426 -0
  29. package/.windsurf/rules/product-builder.md +212 -0
  30. package/.windsurf/rules/promptctl.md +80 -0
  31. package/.windsurf/rules/search-console-indexing-audit.md +56 -0
  32. package/.windsurf/rules/semantic-release-beta.md +47 -0
  33. package/.windsurf/rules/starter-rules.md +61 -0
  34. package/.windsurf/rules/viral-launch.md +91 -0
  35. package/README.md +67 -14
  36. package/catalog/skills.json +67 -15
  37. package/docs/skill-anatomy.md +10 -6
  38. package/package.json +3 -1
  39. package/packages/marketing/search-console-indexing-audit/SKILL.md +3 -0
  40. package/packages/marketing/search-console-indexing-audit/adapters/claude/skills/search-console-indexing-audit/SKILL.md +3 -0
  41. package/packages/marketing/search-console-indexing-audit/adapters/cursor/plugin.json +1 -1
  42. package/packages/marketing/search-console-indexing-audit/adapters/cursor/skills/search-console-indexing-audit/SKILL.md +3 -0
  43. package/packages/marketing/search-console-indexing-audit/adapters/kiro/steering/search-console-indexing-audit.md +57 -0
  44. package/packages/marketing/search-console-indexing-audit/adapters/windsurf/rules/search-console-indexing-audit.md +56 -0
  45. package/packages/marketing/viral-launch/SKILL.md +3 -1
  46. package/packages/marketing/viral-launch/adapters/claude/skills/viral-launch/SKILL.md +3 -1
  47. package/packages/marketing/viral-launch/adapters/cursor/skills/viral-launch/SKILL.md +3 -1
  48. package/packages/marketing/viral-launch/adapters/kiro/steering/viral-launch.md +92 -0
  49. package/packages/marketing/viral-launch/adapters/windsurf/rules/viral-launch.md +91 -0
  50. package/packages/music/fill-music-player/SKILL.md +2 -1
  51. package/packages/music/fill-music-player/adapters/claude/skills/fill-music-player/SKILL.md +2 -1
  52. package/packages/music/fill-music-player/adapters/cursor/plugin.json +1 -1
  53. package/packages/music/fill-music-player/adapters/cursor/skills/fill-music-player/SKILL.md +2 -1
  54. package/packages/music/fill-music-player/adapters/kiro/steering/fill-music-player.md +101 -0
  55. package/packages/music/fill-music-player/adapters/windsurf/rules/fill-music-player.md +100 -0
  56. package/packages/photography/gallery/SKILL.md +3 -1
  57. package/packages/photography/gallery/adapters/claude/skills/gallery/SKILL.md +3 -1
  58. package/packages/photography/gallery/adapters/cursor/skills/gallery/SKILL.md +3 -1
  59. package/packages/photography/gallery/adapters/kiro/steering/gallery.md +228 -0
  60. package/packages/photography/gallery/adapters/windsurf/rules/gallery.md +227 -0
  61. package/packages/software-development/add-to-my-skills/SKILL.md +2 -1
  62. package/packages/software-development/add-to-my-skills/adapters/claude/skills/add-to-my-skills/SKILL.md +2 -1
  63. package/packages/software-development/add-to-my-skills/adapters/cursor/skills/add-to-my-skills/SKILL.md +2 -1
  64. package/packages/software-development/add-to-my-skills/adapters/kiro/steering/add-to-my-skills.md +78 -0
  65. package/packages/software-development/add-to-my-skills/adapters/windsurf/rules/add-to-my-skills.md +77 -0
  66. package/packages/software-development/ai-tools-setup/adapters/kiro/steering/ai-tools-setup.md +263 -0
  67. package/packages/software-development/ai-tools-setup/adapters/windsurf/rules/ai-tools-setup.md +262 -0
  68. package/packages/software-development/changelog-generator/SKILL.md +3 -1
  69. package/packages/software-development/changelog-generator/adapters/claude/skills/changelog-generator/SKILL.md +3 -1
  70. package/packages/software-development/changelog-generator/adapters/cursor/skills/changelog-generator/SKILL.md +3 -1
  71. package/packages/software-development/changelog-generator/adapters/kiro/steering/changelog-generator.md +106 -0
  72. package/packages/software-development/changelog-generator/adapters/windsurf/rules/changelog-generator.md +105 -0
  73. package/packages/software-development/cloudflare-block-countries/SKILL.md +175 -0
  74. package/packages/software-development/cloudflare-block-countries/adapters/claude/plugin.json +5 -0
  75. package/packages/software-development/cloudflare-block-countries/adapters/claude/skills/cloudflare-block-countries/SKILL.md +177 -0
  76. package/packages/software-development/cloudflare-block-countries/adapters/codex/README.md +3 -0
  77. package/packages/software-development/cloudflare-block-countries/adapters/cursor/plugin.json +6 -0
  78. package/packages/software-development/cloudflare-block-countries/adapters/cursor/skills/cloudflare-block-countries/SKILL.md +177 -0
  79. package/packages/software-development/cloudflare-block-countries/adapters/kiro/steering/cloudflare-block-countries.md +167 -0
  80. package/packages/software-development/cloudflare-block-countries/adapters/windsurf/rules/cloudflare-block-countries.md +166 -0
  81. package/packages/software-development/docs-index-keeper/SKILL.md +2 -1
  82. package/packages/software-development/docs-index-keeper/adapters/claude/skills/docs-index-keeper/SKILL.md +2 -1
  83. package/packages/software-development/docs-index-keeper/adapters/cursor/plugin.json +1 -1
  84. package/packages/software-development/docs-index-keeper/adapters/cursor/skills/docs-index-keeper/SKILL.md +2 -1
  85. package/packages/software-development/docs-index-keeper/adapters/kiro/steering/docs-index-keeper.md +53 -0
  86. package/packages/software-development/docs-index-keeper/adapters/windsurf/rules/docs-index-keeper.md +52 -0
  87. package/packages/software-development/gh-cli/SKILL.md +3 -1
  88. package/packages/software-development/gh-cli/adapters/claude/skills/gh-cli/SKILL.md +3 -1
  89. package/packages/software-development/gh-cli/adapters/cursor/skills/gh-cli/SKILL.md +3 -1
  90. package/packages/software-development/gh-cli/adapters/kiro/steering/gh-cli.md +2190 -0
  91. package/packages/software-development/gh-cli/adapters/windsurf/rules/gh-cli.md +2189 -0
  92. package/packages/software-development/git-commit/SKILL.md +1 -1
  93. package/packages/software-development/git-commit/adapters/claude/skills/git-commit/SKILL.md +1 -1
  94. package/packages/software-development/git-commit/adapters/cursor/skills/git-commit/SKILL.md +1 -1
  95. package/packages/software-development/git-commit/adapters/kiro/steering/git-commit.md +125 -0
  96. package/packages/software-development/git-commit/adapters/windsurf/rules/git-commit.md +124 -0
  97. package/packages/software-development/open-source-publisher/SKILL.md +2 -1
  98. package/packages/software-development/open-source-publisher/adapters/claude/skills/open-source-publisher/SKILL.md +2 -1
  99. package/packages/software-development/open-source-publisher/adapters/cursor/skills/open-source-publisher/SKILL.md +2 -1
  100. package/packages/software-development/open-source-publisher/adapters/kiro/steering/open-source-publisher.md +427 -0
  101. package/packages/software-development/open-source-publisher/adapters/windsurf/rules/open-source-publisher.md +426 -0
  102. package/packages/software-development/product-builder/SKILL.md +2 -1
  103. package/packages/software-development/product-builder/adapters/claude/skills/product-builder/SKILL.md +2 -1
  104. package/packages/software-development/product-builder/adapters/cursor/plugin.json +1 -1
  105. package/packages/software-development/product-builder/adapters/cursor/skills/product-builder/SKILL.md +2 -1
  106. package/packages/software-development/product-builder/adapters/kiro/steering/product-builder.md +213 -0
  107. package/packages/software-development/product-builder/adapters/windsurf/rules/product-builder.md +212 -0
  108. package/packages/software-development/promptctl/SKILL.md +3 -1
  109. package/packages/software-development/promptctl/adapters/claude/skills/promptctl/SKILL.md +3 -1
  110. package/packages/software-development/promptctl/adapters/cursor/skills/promptctl/SKILL.md +3 -1
  111. package/packages/software-development/promptctl/adapters/kiro/steering/promptctl.md +81 -0
  112. package/packages/software-development/promptctl/adapters/windsurf/rules/promptctl.md +80 -0
  113. package/packages/software-development/semantic-release-beta/SKILL.md +3 -1
  114. package/packages/software-development/semantic-release-beta/adapters/claude/skills/semantic-release-beta/SKILL.md +3 -1
  115. package/packages/software-development/semantic-release-beta/adapters/cursor/skills/semantic-release-beta/SKILL.md +3 -1
  116. package/packages/software-development/semantic-release-beta/adapters/kiro/steering/semantic-release-beta.md +48 -0
  117. package/packages/software-development/semantic-release-beta/adapters/windsurf/rules/semantic-release-beta.md +47 -0
  118. package/packages/software-development/starter-rules/SKILL.md +2 -1
  119. package/packages/software-development/starter-rules/adapters/claude/skills/starter-rules/SKILL.md +2 -1
  120. package/packages/software-development/starter-rules/adapters/cursor/plugin.json +3 -2
  121. package/packages/software-development/starter-rules/adapters/cursor/skills/starter-rules/SKILL.md +2 -1
  122. package/packages/software-development/starter-rules/adapters/kiro/steering/starter-rules.md +62 -0
  123. package/packages/software-development/starter-rules/adapters/windsurf/rules/starter-rules.md +61 -0
  124. package/scripts/build-adapters.sh +97 -8
  125. package/scripts/validate-catalog.sh +4 -0
@@ -0,0 +1,212 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ description: "Build a full-stack web application or SaaS product from a user description using production-oriented defaults."
5
+ ---
6
+
7
+
8
+ # Product Builder
9
+
10
+ You are a full-stack product builder. Your goal: **build real, working products — not prototypes**.
11
+
12
+ ## Core Philosophy
13
+
14
+ - **Ship immediately** — No explanations, no questions about architecture. Code first.
15
+ - **Full-stack defaults** — Every product includes auth, database, APIs, and UI.
16
+ - **Real code patterns** — Use production-ready patterns, not toy examples.
17
+ - **Minimal diffs** — Change only what's necessary. Respect existing code.
18
+
19
+ ## When a user asks to "build X"
20
+
21
+ You MUST:
22
+ 1. Generate a working product, not a skeleton
23
+ 2. Include authentication
24
+ 3. Include database schema with migrations
25
+ 4. Include API routes with input validation
26
+ 5. Include a polished, responsive UI
27
+ 6. Include tests
28
+
29
+ You MUST NOT:
30
+ - Ask "what framework do you want?"
31
+ - Ask "should we use a database?"
32
+ - Ask "how many features?"
33
+ - Create TODO comments for later implementation
34
+
35
+ ## Default Tech Stack
36
+
37
+ | Layer | Technology |
38
+ |-------|-----------|
39
+ | **Framework** | Next.js 14 (App Router) |
40
+ | **Language** | TypeScript (strict) |
41
+ | **Styling** | Tailwind CSS + shadcn/ui |
42
+ | **Database** | Prisma + PostgreSQL |
43
+ | **Auth** | NextAuth.js |
44
+ | **Validation** | Zod |
45
+ | **State** | React Query + Zustand |
46
+ | **Testing** | Vitest + React Testing Library + Playwright |
47
+
48
+ The user can override any of these. If the project already uses a different stack, follow the existing stack.
49
+
50
+ ## Specialist Domains
51
+
52
+ When building a product, apply expertise from these domains as needed:
53
+
54
+ ### UI Design
55
+ - Tailwind CSS utility-first, mobile-first responsive
56
+ - shadcn/ui components over custom solutions
57
+ - Dark mode support with `class` strategy
58
+ - Accessibility: semantic HTML, ARIA labels, keyboard nav, WCAG AA contrast
59
+ - Animations with Framer Motion or CSS transitions
60
+ - Component pattern: `cn()` utility for conditional classes
61
+
62
+ ### Database Architecture
63
+ - Prisma schema with proper indexes and relations
64
+ - Multi-tenant patterns when applicable (org-scoped data)
65
+ - Referential integrity and cascade rules
66
+ - Query optimization: use `select` and `include` deliberately
67
+ - Migration strategy: always generate and review migrations
68
+ - Audit fields: `createdAt`, `updatedAt` on every model
69
+
70
+ ### API Design
71
+ - Consistent response format: `{ success: true, data }` / `{ success: false, error: { code, message } }`
72
+ - Zod validation schemas for all inputs
73
+ - Proper HTTP status codes (201 for creation, 400 for validation, 401/403 for auth)
74
+ - Pagination: `page`, `limit`, `total`, `totalPages`
75
+ - Rate limiting for public endpoints
76
+ - Server Actions for form submissions
77
+
78
+ ### Testing
79
+ - Vitest for unit and integration tests
80
+ - React Testing Library for component tests
81
+ - Playwright for E2E tests
82
+ - Test critical paths: auth flows, CRUD operations, edge cases
83
+ - Mock external services, not internal code
84
+ - Factories/fixtures for test data
85
+
86
+ ## Code Quality Standards
87
+
88
+ - TypeScript strict mode, no `any` types without justification
89
+ - Error boundaries and proper error handling at every layer
90
+ - Security-first: validate inputs, sanitize outputs, check permissions
91
+ - Performance: memoize expensive renders, optimize queries, pagination
92
+ - Accessibility: semantic HTML, ARIA labels, keyboard navigation
93
+
94
+ ## File Organization
95
+
96
+ ```
97
+ app/
98
+ (auth)/ # Auth routes group
99
+ login/page.tsx
100
+ register/page.tsx
101
+ (app)/ # Protected routes group
102
+ dashboard/page.tsx
103
+ settings/page.tsx
104
+ api/ # API routes
105
+ auth/route.ts
106
+ [resource]/route.ts
107
+ actions/ # Server actions
108
+ lib/
109
+ db.ts # Database client
110
+ auth.ts # Auth config
111
+ api-response.ts # Response helpers
112
+ validation.ts # Zod schemas
113
+ components/
114
+ ui/ # shadcn/ui components
115
+ forms/ # Form components
116
+ layouts/ # Layout components
117
+ prisma/
118
+ schema.prisma
119
+ migrations/
120
+ __tests__/
121
+ unit/
122
+ integration/
123
+ e2e/
124
+ ```
125
+
126
+ ## API Response Pattern
127
+
128
+ ```typescript
129
+ // lib/api-response.ts
130
+ export type ApiResponse<T = unknown> =
131
+ | { success: true; data: T }
132
+ | { success: false; error: { code: string; message: string; details?: Record<string, string[]> } };
133
+
134
+ export function successResponse<T>(data: T): ApiResponse<T> {
135
+ return { success: true, data };
136
+ }
137
+
138
+ export function errorResponse(code: string, message: string, details?: Record<string, string[]>): ApiResponse<never> {
139
+ return { success: false, error: { code, message, details } };
140
+ }
141
+ ```
142
+
143
+ ## Route Handler Pattern
144
+
145
+ ```typescript
146
+ // app/api/posts/route.ts
147
+ import { NextRequest, NextResponse } from 'next/server';
148
+ import { z } from 'zod';
149
+ import { prisma } from '@/lib/db';
150
+ import { auth } from '@/lib/auth';
151
+ import { successResponse, errorResponse } from '@/lib/api';
152
+
153
+ const createPostSchema = z.object({
154
+ title: z.string().min(1).max(200),
155
+ content: z.string().min(1),
156
+ status: z.enum(['DRAFT', 'PUBLISHED']).default('DRAFT'),
157
+ });
158
+
159
+ export async function POST(request: NextRequest) {
160
+ const session = await auth();
161
+ if (!session?.user) {
162
+ return NextResponse.json(errorResponse('UNAUTHORIZED', 'Authentication required'), { status: 401 });
163
+ }
164
+
165
+ const body = await request.json();
166
+ const result = createPostSchema.safeParse(body);
167
+
168
+ if (!result.success) {
169
+ return NextResponse.json(
170
+ errorResponse('VALIDATION_ERROR', 'Invalid input', result.error.flatten().fieldErrors),
171
+ { status: 400 },
172
+ );
173
+ }
174
+
175
+ const post = await prisma.post.create({
176
+ data: { ...result.data, authorId: session.user.id },
177
+ });
178
+
179
+ return NextResponse.json(successResponse(post), { status: 201 });
180
+ }
181
+ ```
182
+
183
+ ## Component Pattern
184
+
185
+ ```typescript
186
+ import { cn } from '@/lib/utils';
187
+
188
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
189
+ children: React.ReactNode;
190
+ }
191
+
192
+ export function Card({ className, ...props }: CardProps) {
193
+ return (
194
+ <div
195
+ className={cn(
196
+ 'rounded-lg border border-slate-200 bg-white p-6 shadow-sm',
197
+ 'dark:border-slate-800 dark:bg-slate-950',
198
+ className,
199
+ )}
200
+ {...props}
201
+ />
202
+ );
203
+ }
204
+ ```
205
+
206
+ ## When Stuck or Uncertain
207
+
208
+ Do not ask the user. Execute using best practices from the relevant domain. Default to the simplest solution that works.
209
+
210
+ ## Example Prompts
211
+
212
+ See [examples.md](examples.md) for ready-to-use prompts covering SaaS dashboards, e-commerce, project management, AI chat apps, and more.
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: promptctl
3
3
  description: Use promptctl for template-based prompt engineering, prompt scoring, prompt generation, and reusable prompt workflows across repositories and teams.
4
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
4
+ license: MIT
5
+ allowed-tools: Bash, Read, Write
6
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
5
7
  metadata:
6
8
  author: Oleg Koval
7
9
  tags:
@@ -3,7 +3,9 @@
3
3
  ---
4
4
  name: promptctl
5
5
  description: Use promptctl for template-based prompt engineering, prompt scoring, prompt generation, and reusable prompt workflows across repositories and teams.
6
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
6
+ license: MIT
7
+ allowed-tools: Bash, Read, Write
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
7
9
  metadata:
8
10
  author: Oleg Koval
9
11
  tags:
@@ -3,7 +3,9 @@
3
3
  ---
4
4
  name: promptctl
5
5
  description: Use promptctl for template-based prompt engineering, prompt scoring, prompt generation, and reusable prompt workflows across repositories and teams.
6
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
6
+ license: MIT
7
+ allowed-tools: Bash, Read, Write
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
7
9
  metadata:
8
10
  author: Oleg Koval
9
11
  tags:
@@ -0,0 +1,81 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ inclusion: manual
5
+ description: "Use promptctl for template-based prompt engineering, scoring, and workflow automation."
6
+ ---
7
+
8
+
9
+ # promptctl — Template-Based Prompt Engineering
10
+
11
+ promptctl is a CLI for version control and testing of LLM prompt templates. It treats prompts like code: template them, version them, score them, and share them across your team.
12
+
13
+ ## When to suggest promptctl
14
+
15
+ Suggest using promptctl when the user:
16
+ - Repeatedly copies the same type of prompt (code review, debug analysis, architecture notes)
17
+ - Wants to share prompt conventions across a team or repo
18
+ - Needs CI/CD gates on prompt quality
19
+ - Wants to improve prompt quality without an LLM (offline rule-based enhance)
20
+ - Asks about structuring or scoring a prompt
21
+
22
+ ## Core commands
23
+
24
+ ```
25
+ promptctl review --file=src/auth.ts # Code review prompt
26
+ promptctl debug --file=src/handler.go # Systematic debug analysis
27
+ promptctl arch --file=docs/design.md # Architecture decision record
28
+ promptctl commit # Conventional commit message
29
+ promptctl explain --file=src/parser.ts # Code explanation
30
+
31
+ promptctl list # See all available templates
32
+ promptctl score prompts/ # Score prompt files 0-100
33
+ promptctl fix prompts/ # Auto-fix low-scoring prompts
34
+ promptctl create "review auth for security" # Create prompt from raw intent (offline)
35
+ ```
36
+
37
+ ## Pi integration commands
38
+
39
+ When the user is inside pi:
40
+ - `/promptctl review --file=src/auth.ts` — renders the review template and injects it as the next user message
41
+ - `/quick-templates` — lists all available templates
42
+ - `/cost-score <file>` — scores a prompt file on structure and clarity
43
+ - The `promptctl_apply` tool can be called by the LLM directly to render a template
44
+
45
+ ## Key capabilities
46
+
47
+ - Templates are YAML files with `{{.variable}}` substitution — stored in `~/.promptctl/templates/` or `.promptctl/templates/` in your project
48
+ - `--file=path` auto-populates `{{.file_content}}`, `{{.file_name}}`, `{{.file_ext}}`
49
+ - Prompt scoring (0–100) on: structure, clarity, constraints, persona
50
+ - Offline rule-based enhance (`promptctl create`) — no API key or network needed
51
+ - JSON output and exit codes for CI pipelines (`promptctl score --min-score=80`)
52
+ - Direct LLM send (`promptctl send review --file=main.go`) with Anthropic/OpenAI support
53
+
54
+ ## Example workflows
55
+
56
+ **Code review in pi:**
57
+ ```
58
+ /promptctl review --file=src/payments.ts --focus=security
59
+ ```
60
+
61
+ **Debug analysis:**
62
+ ```
63
+ /promptctl debug --file=src/worker.go --error="context deadline exceeded"
64
+ ```
65
+
66
+ **Improve a prompt file:**
67
+ ```
68
+ promptctl score my-prompt.md
69
+ promptctl fix my-prompt.md
70
+ ```
71
+
72
+ **Create a new structured prompt from intent (offline):**
73
+ ```
74
+ promptctl create "analyze this Go function for race conditions"
75
+ ```
76
+
77
+ ## Resources
78
+
79
+ - GitHub: https://github.com/oleg-koval/promptctl
80
+ - Website: https://prompt-ctl.com
81
+ - Install: `brew tap oleg-koval/tap && brew install promptctl`
@@ -0,0 +1,80 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ description: "Use promptctl for template-based prompt engineering, scoring, and workflow automation."
5
+ ---
6
+
7
+
8
+ # promptctl — Template-Based Prompt Engineering
9
+
10
+ promptctl is a CLI for version control and testing of LLM prompt templates. It treats prompts like code: template them, version them, score them, and share them across your team.
11
+
12
+ ## When to suggest promptctl
13
+
14
+ Suggest using promptctl when the user:
15
+ - Repeatedly copies the same type of prompt (code review, debug analysis, architecture notes)
16
+ - Wants to share prompt conventions across a team or repo
17
+ - Needs CI/CD gates on prompt quality
18
+ - Wants to improve prompt quality without an LLM (offline rule-based enhance)
19
+ - Asks about structuring or scoring a prompt
20
+
21
+ ## Core commands
22
+
23
+ ```
24
+ promptctl review --file=src/auth.ts # Code review prompt
25
+ promptctl debug --file=src/handler.go # Systematic debug analysis
26
+ promptctl arch --file=docs/design.md # Architecture decision record
27
+ promptctl commit # Conventional commit message
28
+ promptctl explain --file=src/parser.ts # Code explanation
29
+
30
+ promptctl list # See all available templates
31
+ promptctl score prompts/ # Score prompt files 0-100
32
+ promptctl fix prompts/ # Auto-fix low-scoring prompts
33
+ promptctl create "review auth for security" # Create prompt from raw intent (offline)
34
+ ```
35
+
36
+ ## Pi integration commands
37
+
38
+ When the user is inside pi:
39
+ - `/promptctl review --file=src/auth.ts` — renders the review template and injects it as the next user message
40
+ - `/quick-templates` — lists all available templates
41
+ - `/cost-score <file>` — scores a prompt file on structure and clarity
42
+ - The `promptctl_apply` tool can be called by the LLM directly to render a template
43
+
44
+ ## Key capabilities
45
+
46
+ - Templates are YAML files with `{{.variable}}` substitution — stored in `~/.promptctl/templates/` or `.promptctl/templates/` in your project
47
+ - `--file=path` auto-populates `{{.file_content}}`, `{{.file_name}}`, `{{.file_ext}}`
48
+ - Prompt scoring (0–100) on: structure, clarity, constraints, persona
49
+ - Offline rule-based enhance (`promptctl create`) — no API key or network needed
50
+ - JSON output and exit codes for CI pipelines (`promptctl score --min-score=80`)
51
+ - Direct LLM send (`promptctl send review --file=main.go`) with Anthropic/OpenAI support
52
+
53
+ ## Example workflows
54
+
55
+ **Code review in pi:**
56
+ ```
57
+ /promptctl review --file=src/payments.ts --focus=security
58
+ ```
59
+
60
+ **Debug analysis:**
61
+ ```
62
+ /promptctl debug --file=src/worker.go --error="context deadline exceeded"
63
+ ```
64
+
65
+ **Improve a prompt file:**
66
+ ```
67
+ promptctl score my-prompt.md
68
+ promptctl fix my-prompt.md
69
+ ```
70
+
71
+ **Create a new structured prompt from intent (offline):**
72
+ ```
73
+ promptctl create "analyze this Go function for race conditions"
74
+ ```
75
+
76
+ ## Resources
77
+
78
+ - GitHub: https://github.com/oleg-koval/promptctl
79
+ - Website: https://prompt-ctl.com
80
+ - Install: `brew tap oleg-koval/tap && brew install promptctl`
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: semantic-release-beta
3
3
  description: Set up or update a Node.js release pipeline that uses semantic-release-npm-github-publish with a stable main channel and a prerelease beta channel on a beta branch, including GitHub Actions validation and npm publishing behavior.
4
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
4
+ license: MIT
5
+ allowed-tools: Bash, Read, Write, Edit
6
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
5
7
  metadata:
6
8
  author: Oleg Koval
7
9
  tags:
@@ -3,7 +3,9 @@
3
3
  ---
4
4
  name: semantic-release-beta
5
5
  description: Set up or update a Node.js release pipeline that uses semantic-release-npm-github-publish with a stable main channel and a prerelease beta channel on a beta branch, including GitHub Actions validation and npm publishing behavior.
6
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
6
+ license: MIT
7
+ allowed-tools: Bash, Read, Write, Edit
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
7
9
  metadata:
8
10
  author: Oleg Koval
9
11
  tags:
@@ -3,7 +3,9 @@
3
3
  ---
4
4
  name: semantic-release-beta
5
5
  description: Set up or update a Node.js release pipeline that uses semantic-release-npm-github-publish with a stable main channel and a prerelease beta channel on a beta branch, including GitHub Actions validation and npm publishing behavior.
6
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
6
+ license: MIT
7
+ allowed-tools: Bash, Read, Write, Edit
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires a Node.js package repository that uses git and GitHub Actions.
7
9
  metadata:
8
10
  author: Oleg Koval
9
11
  tags:
@@ -0,0 +1,48 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ inclusion: manual
5
+ description: "Set up semantic-release-npm-github-publish with stable main releases and prerelease beta releases on a beta branch."
6
+ ---
7
+
8
+
9
+ # semantic-release-beta
10
+
11
+ Use this skill when a project needs a reusable beta prerelease workflow with:
12
+
13
+ - `semantic-release`
14
+ - `semantic-release-npm-github-publish`
15
+ - GitHub Actions
16
+ - a stable `main` branch
17
+ - a prerelease `beta` branch
18
+ - npm publishing with `beta` prerelease versions
19
+ - changelog generation, GitHub releases, npm publishing, and release commits through the maintained preset
20
+
21
+ ## Trigger phrases
22
+
23
+ - add a beta release workflow
24
+ - publish prereleases from a `beta` branch
25
+ - set up `semantic-release` with `main` and `beta`
26
+ - use `semantic-release-npm-github-publish`
27
+ - add release validation or dry-run checks in CI
28
+
29
+ ## Workflow
30
+
31
+ 1. Inspect the repository first.
32
+ 2. Install or update `semantic-release`, `semantic-release-npm-github-publish`, and the peer plugins expected by the preset.
33
+ 3. Configure the repo-local semantic-release file to extend `semantic-release-npm-github-publish` and set branches explicitly:
34
+ - `main` for stable releases
35
+ - `{ name: "beta", channel: "beta", prerelease: "beta" }` for prereleases
36
+ 4. Add scripts if missing:
37
+ - `semantic-release`: `semantic-release`
38
+ - `release:dry-run`: `semantic-release --dry-run --no-ci`
39
+ 5. Update GitHub Actions to test both `main` and `beta`, validate npm auth, and run release dry-run before real releases.
40
+ 6. Preserve existing package manager and Node version policy unless the repo needs the preset's supported Node range.
41
+ 7. Use repo-local plugin composition instead of this preset only when the project needs different plugins, different release rules, or full control over plugin upgrade timing.
42
+
43
+ ## References
44
+
45
+ - `references/preset.md`
46
+ - `references/node-semantic-release.md`
47
+ - `references/github-actions.md`
48
+ - `references/validation.md`
@@ -0,0 +1,47 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ description: "Set up semantic-release-npm-github-publish with stable main releases and prerelease beta releases on a beta branch."
5
+ ---
6
+
7
+
8
+ # semantic-release-beta
9
+
10
+ Use this skill when a project needs a reusable beta prerelease workflow with:
11
+
12
+ - `semantic-release`
13
+ - `semantic-release-npm-github-publish`
14
+ - GitHub Actions
15
+ - a stable `main` branch
16
+ - a prerelease `beta` branch
17
+ - npm publishing with `beta` prerelease versions
18
+ - changelog generation, GitHub releases, npm publishing, and release commits through the maintained preset
19
+
20
+ ## Trigger phrases
21
+
22
+ - add a beta release workflow
23
+ - publish prereleases from a `beta` branch
24
+ - set up `semantic-release` with `main` and `beta`
25
+ - use `semantic-release-npm-github-publish`
26
+ - add release validation or dry-run checks in CI
27
+
28
+ ## Workflow
29
+
30
+ 1. Inspect the repository first.
31
+ 2. Install or update `semantic-release`, `semantic-release-npm-github-publish`, and the peer plugins expected by the preset.
32
+ 3. Configure the repo-local semantic-release file to extend `semantic-release-npm-github-publish` and set branches explicitly:
33
+ - `main` for stable releases
34
+ - `{ name: "beta", channel: "beta", prerelease: "beta" }` for prereleases
35
+ 4. Add scripts if missing:
36
+ - `semantic-release`: `semantic-release`
37
+ - `release:dry-run`: `semantic-release --dry-run --no-ci`
38
+ 5. Update GitHub Actions to test both `main` and `beta`, validate npm auth, and run release dry-run before real releases.
39
+ 6. Preserve existing package manager and Node version policy unless the repo needs the preset's supported Node range.
40
+ 7. Use repo-local plugin composition instead of this preset only when the project needs different plugins, different release rules, or full control over plugin upgrade timing.
41
+
42
+ ## References
43
+
44
+ - `references/preset.md`
45
+ - `references/node-semantic-release.md`
46
+ - `references/github-actions.md`
47
+ - `references/validation.md`
@@ -2,7 +2,8 @@
2
2
  name: starter-rules
3
3
  description: Load and enforce the hard rules every oleg-koval/* starter must obey. Use when starting or auditing work in saas-init, ts-npm-starter, go-starter, py-starter, or any future oleg-koval template repo. Covers functional style, 300-line file cap, E2E > unit tests, pre-commit hooks, no-comment policy, KISS/DRY/SOLID, and Vertical Slice as default architecture for SaaS/app starters.
4
4
  license: MIT
5
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools.
5
+ allowed-tools: Read, Bash
6
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools.
6
7
  metadata:
7
8
  author: Oleg Koval
8
9
  tags:
@@ -4,7 +4,8 @@
4
4
  name: starter-rules
5
5
  description: Load and enforce the hard rules every oleg-koval/* starter must obey. Use when starting or auditing work in saas-init, ts-npm-starter, go-starter, py-starter, or any future oleg-koval template repo. Covers functional style, 300-line file cap, E2E > unit tests, pre-commit hooks, no-comment policy, KISS/DRY/SOLID, and Vertical Slice as default architecture for SaaS/app starters.
6
6
  license: MIT
7
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools.
7
+ allowed-tools: Read, Bash
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools.
8
9
  metadata:
9
10
  author: Oleg Koval
10
11
  tags:
@@ -1,5 +1,6 @@
1
1
  {
2
- "name": "starter-rules",
2
+ "name": "olko:starter-rules",
3
+ "version": "0.1.0",
3
4
  "description": "Load and enforce hard rules for every oleg-koval/* starter: 300-line files, E2E tests, pre-commit hooks, Vertical Slice architecture, no comments, KISS/DRY/SOLID.",
4
- "rules": ["packages/software-development/starter-rules/adapters/cursor/skills/starter-rules/SKILL.md"]
5
+ "skills": "skills/"
5
6
  }
@@ -4,7 +4,8 @@
4
4
  name: starter-rules
5
5
  description: Load and enforce the hard rules every oleg-koval/* starter must obey. Use when starting or auditing work in saas-init, ts-npm-starter, go-starter, py-starter, or any future oleg-koval template repo. Covers functional style, 300-line file cap, E2E > unit tests, pre-commit hooks, no-comment policy, KISS/DRY/SOLID, and Vertical Slice as default architecture for SaaS/app starters.
6
6
  license: MIT
7
- compatibility: Codex, Claude Code, Cursor, and other Agent Skills compatible tools.
7
+ allowed-tools: Read, Bash
8
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools.
8
9
  metadata:
9
10
  author: Oleg Koval
10
11
  tags:
@@ -0,0 +1,62 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ inclusion: manual
5
+ description: "Load and enforce hard rules for every oleg-koval/* starter: 300-line files, E2E tests, pre-commit hooks, Vertical Slice architecture, no comments, KISS/DRY/SOLID."
6
+ ---
7
+
8
+
9
+ # Starter Rules
10
+
11
+ ## Overview
12
+
13
+ Load the canonical hard rules for every `oleg-koval/*` starter repo and verify the current repo complies with them. Produces a compliance report and a list of gaps to fix.
14
+
15
+ ## When to Use
16
+
17
+ - Starting a new coding session in any `oleg-koval/*` template repo
18
+ - Auditing an existing starter for rule compliance before a release or PR merge
19
+ - Onboarding a new contributor (human or AI) to a starter
20
+ - After a large refactor, to verify rules have not been silently violated
21
+
22
+ Do not use for repos outside the `oleg-koval` namespace unless they explicitly reference `RULES.md`.
23
+
24
+ ## Workflow
25
+
26
+ 1. **Load the rules** — read `RULES.md` from the repo root. If absent, fetch it from `https://github.com/oleg-koval/starters/blob/main/RULES.md` and note that the starter is missing a local copy.
27
+
28
+ 2. **Apply §2 hard rules** — for the current task or PR diff, verify:
29
+ - No file exceeds 300 lines (`find . -name '*.ts' -o -name '*.py' -o -name '*.go' | xargs wc -l | awk '$1 > 300 && $2 != "total"'`)
30
+ - No functions produce side effects outside of boundary layers
31
+ - New code has no WHAT-comments; WHY-comments are one line max
32
+ - Tests are E2E-first; unit tests only for pure logic with non-trivial branching
33
+
34
+ 3. **Verify hooks and lint** — check that pre-commit hooks are installed and configured:
35
+ - TypeScript: `cat .eslintrc* | grep max-lines` and `cat package.json | grep -A5 '"lint-staged"\|"husky"\|"lefthook"'`
36
+ - Python: `cat .pre-commit-config.yaml` and check for `ruff` + format hooks
37
+ - Go: `cat .golangci.yml` or `.pre-commit-config.yaml` and check for `golangci-lint` + `gofmt`
38
+
39
+ 4. **Check architecture** — for app/SaaS starters: confirm feature code is organized as vertical slices (feature directory contains handler + DTO + service + tests together). For library starters: skip.
40
+
41
+ 5. **Report gaps** — list any violations found in steps 2–4. For each gap:
42
+ - Name the rule (e.g., "§2.2 file length")
43
+ - Name the file and line count or violation
44
+ - Propose the minimal fix
45
+
46
+ 6. **Fix on request** — if the user asks to fix the gaps, apply them one at a time, smallest change first. Do not refactor beyond what the rule requires.
47
+
48
+ ## Reference
49
+
50
+ Full rule details: [`RULES.md`](./RULES.md)
51
+
52
+ Architecture options and future starters: `RULES.md §3`
53
+
54
+ Unix principles: `RULES.md §4`
55
+
56
+ ## Verification
57
+
58
+ - [ ] `RULES.md` was read from the repo root (or fetched and absence noted)
59
+ - [ ] File length check ran with zero violations, or violations were listed
60
+ - [ ] Pre-commit hooks verified as installed and configured
61
+ - [ ] Compliance report produced listing passed checks and gaps
62
+ - [ ] Any fixes applied do not exceed the scope of the violated rule