@archznn/crewloop-skills 0.1.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.
@@ -0,0 +1,511 @@
1
+ # Section Templates
2
+
3
+ README skeletons for each project type. Copy the relevant template, fill placeholders, and adapt to the project.
4
+
5
+ ## Contents
6
+
7
+ - [CLI tool](#cli-tool)
8
+ - [Library / package](#library--package)
9
+ - [Web app](#web-app)
10
+ - [Framework](#framework)
11
+ - [Monorepo](#monorepo)
12
+ - [Skill bundle](#skill-bundle)
13
+ - [Module / feature doc](#module--feature-doc)
14
+ - [Section-by-section guidance](#section-by-section-guidance)
15
+
16
+ ---
17
+
18
+ ## CLI Tool
19
+
20
+ ```markdown
21
+ <h1 align="center">{{name}}</h1>
22
+
23
+ <p align="center">{{one-liner}}</p>
24
+
25
+ <p align="center">
26
+ <a href="https://www.npmjs.com/package/{{name}}"><img src="https://img.shields.io/npm/v/{{name}}.svg" alt="npm version"></a>
27
+ <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
28
+ </p>
29
+
30
+ - **Feature one:** short explanation.
31
+ - **Feature two:** short explanation.
32
+ - **Feature three:** short explanation.
33
+
34
+ ## Install
35
+
36
+ \`\`\`bash
37
+ npm install -g {{name}}
38
+ \`\`\`
39
+
40
+ Requires Node.js {{node-version}}+.
41
+
42
+ ## Usage
43
+
44
+ \`\`\`bash
45
+ {{name}} {{basic-command}}
46
+ {{name}} {{command-with-flag}}
47
+ {{name}} {{command-with-options}}
48
+ \`\`\`
49
+
50
+ ## Options
51
+
52
+ \`\`\`
53
+ -o, --output <file> Description
54
+ -v, --verbose Description
55
+ -h, --help Show help
56
+ -V, --version Show version
57
+ \`\`\`
58
+
59
+ ## API
60
+
61
+ \`\`\`typescript
62
+ import { {{mainExport}} } from "{{name}}";
63
+
64
+ const result = await {{mainExport}}({{args}});
65
+ \`\`\`
66
+
67
+ ## License
68
+
69
+ [MIT](LICENSE.md)
70
+ ```
71
+
72
+ ### Notes
73
+
74
+ - Lead with centered title + one-liner + badges block for visual impact.
75
+ - Feature list goes above the fold (no heading needed, just a bullet list).
76
+ - Show `npm install -g` first (global install for CLIs), then `npx` as alternative if applicable.
77
+ - Usage section: 3-5 real commands, simplest first. Show actual flags, not pseudocode.
78
+ - Options: copy from `--help` output. Keep formatting as a code block, not a table.
79
+ - API section: only include if the CLI also exports a programmatic API. Otherwise omit.
80
+
81
+ ---
82
+
83
+ ## Library / Package
84
+
85
+ ```markdown
86
+ <h3 align="center">{{name}}</h3>
87
+ <p align="center">{{one-liner}}</p>
88
+
89
+ <p align="center">
90
+ <a href="https://www.npmjs.com/package/{{name}}"><img alt="npm version" src="https://img.shields.io/npm/v/{{name}}"></a>
91
+ <a href="LICENSE.md"><img alt="License" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
92
+ </p>
93
+
94
+ ## Highlights
95
+
96
+ - Highlight one
97
+ - Highlight two
98
+ - Highlight three
99
+
100
+ ## Quick Start
101
+
102
+ \`\`\`bash
103
+ npm install {{name}}
104
+ \`\`\`
105
+
106
+ \`\`\`tsx
107
+ import { {{mainExport}} } from "{{name}}"
108
+
109
+ {{minimal-usage-example}}
110
+ \`\`\`
111
+
112
+ ## Usage
113
+
114
+ \`\`\`tsx
115
+ // Pattern one
116
+ import { A } from "{{name}}"
117
+
118
+ // Pattern two (tree-shaking)
119
+ import { B } from "{{name}}/b"
120
+ \`\`\`
121
+
122
+ All components/functions accept these props/options:
123
+
124
+ - `option`: description (default: `value`)
125
+
126
+ ## License
127
+
128
+ [MIT](LICENSE.md)
129
+ ```
130
+
131
+ ### Notes
132
+
133
+ - "Highlights" instead of "Features": it's a library, so show what makes it stand out.
134
+ - Quick Start = install + minimal working example in under 10 lines total.
135
+ - Usage section shows import patterns and common configurations.
136
+ - Prop/option list uses inline code for names and defaults.
137
+ - Link to external docs site if one exists (add a Documentation section after Highlights).
138
+
139
+ ---
140
+
141
+ ## Web App
142
+
143
+ ```markdown
144
+ # {{name}}
145
+
146
+ {{one-liner describing what the app does and who it's for}}
147
+
148
+ ## Features
149
+
150
+ - **Feature one:** short explanation.
151
+ - **Feature two:** short explanation.
152
+ - **Feature three:** short explanation.
153
+
154
+ ## Getting Started
155
+
156
+ \`\`\`bash
157
+ git clone https://github.com/{{owner}}/{{repo}}.git
158
+ cd {{repo}}
159
+ npm install
160
+ cp .env.example .env.local
161
+ npm run dev
162
+ \`\`\`
163
+
164
+ Open [http://localhost:3000](http://localhost:3000).
165
+
166
+ ## Environment Variables
167
+
168
+ | Variable | Description | Required |
169
+ |----------|-------------|----------|
170
+ | `DATABASE_URL` | Database connection string | Yes |
171
+ | `API_KEY` | Third-party API key | Yes |
172
+
173
+ ## Tech Stack
174
+
175
+ - [Next.js](https://nextjs.org/): framework
176
+ - [TypeScript](https://www.typescriptlang.org/): language
177
+ - [Tailwind CSS](https://tailwindcss.com/): styling
178
+
179
+ ## License
180
+
181
+ [MIT](LICENSE.md)
182
+ ```
183
+
184
+ ### Notes
185
+
186
+ - No badges for apps (they're not published to a registry).
187
+ - No centered title (apps are simpler, less "brand" presence).
188
+ - Getting Started replaces Install: readers need to clone and configure.
189
+ - Environment variables table is critical. Include `.env.example` in the repo.
190
+ - Tech Stack is optional but helps contributors understand the codebase.
191
+ - Never ship the default create-next-app README. Replace it immediately.
192
+
193
+ ---
194
+
195
+ ## Framework
196
+
197
+ ```markdown
198
+ # {{name}}
199
+
200
+ [![npm version](https://img.shields.io/npm/v/{{name}}.svg)](https://www.npmjs.com/package/{{name}})
201
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.md)
202
+
203
+ {{one-liner explaining the core value proposition}}
204
+
205
+ ## Features
206
+
207
+ - **Feature one:** detailed explanation of what it does and why it matters.
208
+ - **Feature two:** detailed explanation.
209
+ - **Feature three:** detailed explanation.
210
+
211
+ ## Install
212
+
213
+ \`\`\`bash
214
+ npm install {{name}}
215
+ \`\`\`
216
+
217
+ ## Quick Start
218
+
219
+ \`\`\`typescript
220
+ {{minimal-working-example}}
221
+ \`\`\`
222
+
223
+ ## Usage
224
+
225
+ ### Basic
226
+
227
+ \`\`\`typescript
228
+ {{basic-usage}}
229
+ \`\`\`
230
+
231
+ ### Advanced
232
+
233
+ \`\`\`typescript
234
+ {{advanced-usage-with-configuration}}
235
+ \`\`\`
236
+
237
+ ## Configuration
238
+
239
+ | Option | Type | Default | Description |
240
+ |--------|------|---------|-------------|
241
+ | `option` | `string` | `"default"` | What it controls |
242
+
243
+ ## Requirements
244
+
245
+ - Node.js {{version}}+
246
+ - {{other-dependency}}
247
+
248
+ ## License
249
+
250
+ [MIT](LICENSE.md)
251
+ ```
252
+
253
+ ### Notes
254
+
255
+ - Feature descriptions are longer than for CLIs and libraries: explain the "why" alongside the "what".
256
+ - Progressive disclosure: Quick Start (5 lines) → Basic Usage → Advanced Usage → Configuration reference.
257
+ - Configuration table with types and defaults is essential for frameworks.
258
+ - Requirements section is more important here: frameworks often have specific runtime needs.
259
+
260
+ ---
261
+
262
+ ## Monorepo (published)
263
+
264
+ ```markdown
265
+ # {{name}}
266
+
267
+ {{one-liner}}
268
+
269
+ ## Packages
270
+
271
+ | Package | Description | Version |
272
+ |---------|-------------|---------|
273
+ | [`{{pkg-a}}`](packages/{{pkg-a}}) | What it does | [![npm](https://img.shields.io/npm/v/{{pkg-a}}.svg)](https://www.npmjs.com/package/{{pkg-a}}) |
274
+ | [`{{pkg-b}}`](packages/{{pkg-b}}) | What it does | [![npm](https://img.shields.io/npm/v/{{pkg-b}}.svg)](https://www.npmjs.com/package/{{pkg-b}}) |
275
+
276
+ ## Getting Started
277
+
278
+ \`\`\`bash
279
+ git clone https://github.com/{{owner}}/{{repo}}.git
280
+ cd {{repo}}
281
+ npm install
282
+ npm run dev
283
+ \`\`\`
284
+
285
+ ## Development
286
+
287
+ \`\`\`bash
288
+ npm run build # Build all packages
289
+ npm run test # Run all tests
290
+ npm run lint # Lint all packages
291
+ \`\`\`
292
+
293
+ ## Contributing
294
+
295
+ See individual package READMEs for package-specific setup.
296
+
297
+ ## License
298
+
299
+ [MIT](LICENSE.md)
300
+ ```
301
+
302
+ ### Notes
303
+
304
+ - The packages table is the centerpiece: it's how readers discover what's in the monorepo.
305
+ - Link each package name to its directory (which should have its own README).
306
+ - Version badges in the table give at-a-glance status for each package.
307
+ - Development commands run from root using the workspace tool (turbo, nx, etc.).
308
+
309
+ ---
310
+
311
+ ## Monorepo (private / internal)
312
+
313
+ Use this when the monorepo is not published to a registry (`"private": true` in package.json, no npm publish). No badges, no version column. Focus on getting a contributor running fast.
314
+
315
+ ```markdown
316
+ # {{name}}
317
+
318
+ {{one-liner}}
319
+
320
+ ## Requirements
321
+
322
+ - Node {{node-version}}+ (npm {{npm-version}}, see `packageManager` in `package.json`)
323
+ - {{additional-runtime}} (e.g., Python 3 for pipeline scripts)
324
+
325
+ ## Quick start
326
+
327
+ \`\`\`bash
328
+ npm install
329
+ {{additional-setup-commands}}
330
+ npm run dev
331
+ \`\`\`
332
+
333
+ ## Workspaces
334
+
335
+ | Package | Purpose |
336
+ |---------|---------|
337
+ | [`{{app-a}}`](apps/{{app-a}}) | What it does |
338
+ | [`{{pkg-a}}`](packages/{{pkg-a}}) | What it does |
339
+ | [`{{pkg-b}}`](packages/{{pkg-b}}) | What it does |
340
+
341
+ ## Common commands
342
+
343
+ \`\`\`bash
344
+ npm run build # build all workspaces
345
+ npm run typecheck # type-check applicable workspaces
346
+ {{project-specific commands with inline comments}}
347
+ \`\`\`
348
+
349
+ {{optional: one paragraph on what is gitignored and why}}
350
+ ```
351
+
352
+ ### Notes
353
+
354
+ - No badges, no version column: private packages have no registry presence.
355
+ - "Workspaces" instead of "Packages" reads clearer for mixed app + package monorepos.
356
+ - "Purpose" column instead of "Description" encourages specific, action-oriented text.
357
+ - Requirements section is critical when multiple runtimes are needed (Node + Python, Node + Rust).
358
+ - List setup commands for secondary runtimes in Quick start (e.g., `npm run setup:python`).
359
+ - Common commands section replaces "Development": show the commands people actually run, not generic build/test/lint.
360
+
361
+ ---
362
+
363
+ ## Skill Bundle
364
+
365
+ ```markdown
366
+ # {{name}}
367
+
368
+ {{one-liner}}
369
+
370
+ ## Quick Start
371
+
372
+ \`\`\`bash
373
+ npx skills add {{owner}}/{{repo}} -g --all -y
374
+ \`\`\`
375
+
376
+ Supports OpenCode, Claude Code, Codex, and Cursor. Install a single skill with `--skill <name>`.
377
+
378
+ ## Skills
379
+
380
+ | Skill | Phase | What it does |
381
+ |-------|-------|-------------|
382
+ | `{{skill-a}}` | {{phase}} | {{description}} |
383
+ | `{{skill-b}}` | {{phase}} | {{description}} |
384
+
385
+ ## Contributing
386
+
387
+ Edit the files in `skills/`. Keep `SKILL.md` concise and use reference files for detail.
388
+ ```
389
+
390
+ ### Notes
391
+
392
+ - Quick Start is the single install command, nothing else needed.
393
+ - Skills table is the core content. One row per skill with phase and description.
394
+ - Contributing section is minimal: point to the skills/ directory.
395
+ - No license section needed if the bundle is not a published package (add one if it is).
396
+
397
+ ---
398
+
399
+ ## Module / Feature Doc
400
+
401
+ For documenting a module, feature, or capability within a larger project.
402
+
403
+ ```markdown
404
+ # {{name}}
405
+
406
+ {{one-liner describing what this module/feature does}}
407
+
408
+ ## Overview
409
+
410
+ {{2-3 sentences on purpose, scope, and where it fits in the project}}
411
+
412
+ ## Usage
413
+
414
+ \`\`\`{{language}}
415
+ {{minimal-working-example}}
416
+ \`\`\`
417
+
418
+ ### Common patterns
419
+
420
+ \`\`\`{{language}}
421
+ {{pattern-one}}
422
+ \`\`\`
423
+
424
+ \`\`\`{{language}}
425
+ {{pattern-two}}
426
+ \`\`\`
427
+
428
+ ## API / Interface
429
+
430
+ | Name | Type | Description |
431
+ |------|------|-------------|
432
+ | `{{function}}` | `({{args}}) => {{return}}` | What it does |
433
+ | `{{config}}` | `{{type}}` | Configuration option |
434
+
435
+ ## Configuration
436
+
437
+ | Option | Type | Default | Description |
438
+ |--------|------|---------|-------------|
439
+ | `{{option}}` | `{{type}}` | `{{default}}` | What it controls |
440
+
441
+ ## Related
442
+
443
+ - [{{related-doc}}]({{path}})
444
+ - [{{another-doc}}]({{path}})
445
+ ```
446
+
447
+ ### Notes
448
+
449
+ - One module/feature = one doc file. Keep it focused.
450
+ - Usage examples must be copy-pasteable and runnable.
451
+ - API table documents the public surface only.
452
+ - Link to related docs for context and navigation.
453
+
454
+ ---
455
+
456
+ ## Section-by-Section Guidance
457
+
458
+ ### Title
459
+
460
+ - Use the project name exactly as it appears in `package.json` `name` field (or equivalent).
461
+ - Never use "About", "Introduction", or "Overview" as the first heading.
462
+ - For published packages: centered HTML title (`<h1 align="center">`) or `# name`.
463
+ - For apps and internal tools: plain `# name`.
464
+
465
+ ### One-liner
466
+
467
+ - One sentence directly below the title. No heading.
468
+ - Answers: "What does this do?" in plain language.
469
+ - Bad: "This is a tool that helps you manage your configurations."
470
+ - Good: "Manage configurations across environments with type-safe schemas."
471
+
472
+ ### Feature list
473
+
474
+ - Bullet list with bold lead + short explanation.
475
+ - 5-9 features. More than 9 means you need subheadings or a docs site.
476
+ - Place above the fold (before Install) so readers see value before effort.
477
+ - Format: `- **Feature name:** what it does.` (not `- **Feature name** - what it does.`)
478
+
479
+ ### Install
480
+
481
+ - Show the single fastest path. For npm packages: `npm install {{name}}`.
482
+ - Add global flag for CLIs: `npm install -g {{name}}`.
483
+ - Show `npx` alternative only if it's the primary usage pattern.
484
+ - List requirements immediately after the install command (Node.js version, system deps).
485
+
486
+ ### Usage / Quick Start
487
+
488
+ - Start with the simplest possible example that produces a visible result.
489
+ - Every code block must be copy-pasteable and runnable without modification.
490
+ - Use realistic values. Never use `foo`, `bar`, `example`, or `test` as values.
491
+ - Show 3-5 examples. First is basic, last is advanced.
492
+ - For CLIs: show actual terminal commands with real flags.
493
+ - For libraries: show import + minimal usage in under 10 lines.
494
+
495
+ ### Options / API reference
496
+
497
+ - CLIs: paste `--help` output as a code block. Keep it as-is.
498
+ - Libraries: list exported functions/components with their signatures.
499
+ - Use tables for structured option docs (name, type, default, description).
500
+ - Only document public API. Internal functions stay internal.
501
+
502
+ ### Environment variables
503
+
504
+ - Table format: variable name, description, required/optional.
505
+ - Ship a `.env.example` file in the repo with placeholder values.
506
+ - Never include real API keys or secrets in examples.
507
+
508
+ ### License
509
+
510
+ - Always include. One line: `[MIT](LICENSE.md)` or equivalent.
511
+ - Use a link to the LICENSE file, not the full license text.