@zimezone/z-command 1.1.1 → 1.1.2
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/README.md +13 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +34 -9
- package/dist/commands/init.js.map +1 -1
- package/package.json +8 -3
- package/templates.zip +0 -0
- package/templates/agents/accessibility-expert.agent.md +0 -56
- package/templates/agents/ai-engineer.agent.md +0 -61
- package/templates/agents/angular-architect.agent.md +0 -49
- package/templates/agents/api-designer.agent.md +0 -40
- package/templates/agents/api-documenter.agent.md +0 -161
- package/templates/agents/architect-review.agent.md +0 -146
- package/templates/agents/arm-cortex-expert.agent.md +0 -288
- package/templates/agents/azure-infra-engineer.agent.md +0 -57
- package/templates/agents/backend-architect.agent.md +0 -309
- package/templates/agents/backend-developer.agent.md +0 -61
- package/templates/agents/backend-security-coder.agent.md +0 -152
- package/templates/agents/bash-pro.agent.md +0 -285
- package/templates/agents/blockchain-developer.agent.md +0 -57
- package/templates/agents/build-engineer.agent.md +0 -56
- package/templates/agents/business-analyst.agent.md +0 -47
- package/templates/agents/c-pro.agent.md +0 -35
- package/templates/agents/c4-code.agent.md +0 -320
- package/templates/agents/c4-component.agent.md +0 -227
- package/templates/agents/c4-container.agent.md +0 -248
- package/templates/agents/c4-context.agent.md +0 -235
- package/templates/agents/cli-developer.agent.md +0 -57
- package/templates/agents/cloud-architect.agent.md +0 -56
- package/templates/agents/code-architect.agent.md +0 -63
- package/templates/agents/code-reviewer.agent.md +0 -49
- package/templates/agents/competitive-analyst.agent.md +0 -48
- package/templates/agents/conductor-validator.agent.md +0 -245
- package/templates/agents/context-manager.agent.md +0 -55
- package/templates/agents/cpp-pro.agent.md +0 -59
- package/templates/agents/csharp-developer.agent.md +0 -57
- package/templates/agents/csharp-pro.agent.md +0 -38
- package/templates/agents/customer-support.agent.md +0 -148
- package/templates/agents/data-engineer.agent.md +0 -55
- package/templates/agents/data-researcher.agent.md +0 -55
- package/templates/agents/data-scientist.agent.md +0 -56
- package/templates/agents/database-admin.agent.md +0 -142
- package/templates/agents/database-administrator.agent.md +0 -50
- package/templates/agents/database-architect.agent.md +0 -238
- package/templates/agents/database-optimizer.agent.md +0 -144
- package/templates/agents/debugger.agent.md +0 -30
- package/templates/agents/deployment-engineer.agent.md +0 -0
- package/templates/agents/devops-engineer.agent.md +0 -59
- package/templates/agents/devops-troubleshooter.agent.md +0 -138
- package/templates/agents/django-developer.agent.md +0 -50
- package/templates/agents/django-pro.agent.md +0 -159
- package/templates/agents/docs-architect.agent.md +0 -77
- package/templates/agents/documentation-engineer.agent.md +0 -57
- package/templates/agents/dotnet-architect.agent.md +0 -175
- package/templates/agents/dx-optimizer.agent.md +0 -63
- package/templates/agents/electron-pro.agent.md +0 -56
- package/templates/agents/elixir-pro.agent.md +0 -38
- package/templates/agents/embedded-systems.agent.md +0 -55
- package/templates/agents/error-detective.agent.md +0 -32
- package/templates/agents/event-sourcing-architect.agent.md +0 -42
- package/templates/agents/fastapi-pro.agent.md +0 -171
- package/templates/agents/fintech-engineer.agent.md +0 -57
- package/templates/agents/firmware-analyst.agent.md +0 -330
- package/templates/agents/flutter-expert.agent.md +0 -50
- package/templates/agents/frontend-developer.agent.md +0 -59
- package/templates/agents/frontend-security-coder.agent.md +0 -149
- package/templates/agents/fullstack-developer.agent.md +0 -46
- package/templates/agents/git-workflow-manager.agent.md +0 -57
- package/templates/agents/golang-pro.agent.md +0 -50
- package/templates/agents/graphql-architect.agent.md +0 -48
- package/templates/agents/haskell-pro.agent.md +0 -37
- package/templates/agents/hr-pro.agent.md +0 -105
- package/templates/agents/incident-responder.agent.md +0 -190
- package/templates/agents/ios-developer.agent.md +0 -198
- package/templates/agents/iot-engineer.agent.md +0 -56
- package/templates/agents/java-architect.agent.md +0 -48
- package/templates/agents/java-pro.agent.md +0 -156
- package/templates/agents/javascript-pro.agent.md +0 -35
- package/templates/agents/julia-pro.agent.md +0 -187
- package/templates/agents/kotlin-specialist.agent.md +0 -50
- package/templates/agents/laravel-specialist.agent.md +0 -50
- package/templates/agents/legacy-modernizer.agent.md +0 -56
- package/templates/agents/legal-advisor.agent.md +0 -49
- package/templates/agents/llm-architect.agent.md +0 -58
- package/templates/agents/malware-analyst.agent.md +0 -272
- package/templates/agents/mcp-developer.agent.md +0 -54
- package/templates/agents/mermaid-expert.agent.md +0 -39
- package/templates/agents/microservices-architect.agent.md +0 -47
- package/templates/agents/minecraft-bukkit-pro.agent.md +0 -104
- package/templates/agents/ml-engineer.agent.md +0 -56
- package/templates/agents/mlops-engineer.agent.md +0 -56
- package/templates/agents/mobile-developer.agent.md +0 -45
- package/templates/agents/mobile-security-coder.agent.md +0 -163
- package/templates/agents/monorepo-architect.agent.md +0 -44
- package/templates/agents/multi-agent-coordinator.agent.md +0 -55
- package/templates/agents/network-engineer.agent.md +0 -57
- package/templates/agents/nextjs-developer.agent.md +0 -48
- package/templates/agents/nlp-engineer.agent.md +0 -58
- package/templates/agents/observability-engineer.agent.md +0 -228
- package/templates/agents/payment-integration.agent.md +0 -56
- package/templates/agents/performance-engineer.agent.md +0 -167
- package/templates/agents/performance-optimizer.agent.md +0 -57
- package/templates/agents/php-pro.agent.md +0 -43
- package/templates/agents/platform-engineer.agent.md +0 -57
- package/templates/agents/posix-shell-pro.agent.md +0 -284
- package/templates/agents/postgres-pro.agent.md +0 -58
- package/templates/agents/product-manager.agent.md +0 -55
- package/templates/agents/project-manager.agent.md +0 -57
- package/templates/agents/prompt-engineer.agent.md +0 -58
- package/templates/agents/python-pro.agent.md +0 -48
- package/templates/agents/quant-analyst.agent.md +0 -32
- package/templates/agents/rails-expert.agent.md +0 -50
- package/templates/agents/react-specialist.agent.md +0 -49
- package/templates/agents/refactoring-specialist.agent.md +0 -56
- package/templates/agents/reference-builder.agent.md +0 -167
- package/templates/agents/research-analyst.agent.md +0 -63
- package/templates/agents/reverse-engineer.agent.md +0 -202
- package/templates/agents/risk-manager.agent.md +0 -41
- package/templates/agents/ruby-pro.agent.md +0 -35
- package/templates/agents/rust-pro.agent.md +0 -156
- package/templates/agents/sales-automator.agent.md +0 -35
- package/templates/agents/scala-pro.agent.md +0 -60
- package/templates/agents/scrum-master.agent.md +0 -54
- package/templates/agents/search-specialist.agent.md +0 -59
- package/templates/agents/security-analyst.agent.md +0 -57
- package/templates/agents/security-auditor.agent.md +0 -138
- package/templates/agents/security-engineer.agent.md +0 -57
- package/templates/agents/seo-authority-builder.agent.md +0 -116
- package/templates/agents/seo-cannibalization-detector.agent.md +0 -103
- package/templates/agents/seo-content-auditor.agent.md +0 -63
- package/templates/agents/seo-content-planner.agent.md +0 -88
- package/templates/agents/seo-content-refresher.agent.md +0 -98
- package/templates/agents/seo-content-writer.agent.md +0 -76
- package/templates/agents/seo-keyword-strategist.agent.md +0 -75
- package/templates/agents/seo-meta-optimizer.agent.md +0 -72
- package/templates/agents/seo-snippet-hunter.agent.md +0 -94
- package/templates/agents/seo-specialist.agent.md +0 -57
- package/templates/agents/seo-structure-architect.agent.md +0 -88
- package/templates/agents/service-mesh-expert.agent.md +0 -41
- package/templates/agents/sql-pro.agent.md +0 -146
- package/templates/agents/sre-engineer.agent.md +0 -58
- package/templates/agents/swift-expert.agent.md +0 -49
- package/templates/agents/task-distributor.agent.md +0 -47
- package/templates/agents/tdd-orchestrator.agent.md +0 -183
- package/templates/agents/technical-writer.agent.md +0 -48
- package/templates/agents/temporal-python-pro.agent.md +0 -349
- package/templates/agents/terraform-engineer.agent.md +0 -57
- package/templates/agents/terraform-specialist.agent.md +0 -137
- package/templates/agents/test-automator.agent.md +0 -203
- package/templates/agents/test-engineer.agent.md +0 -55
- package/templates/agents/threat-modeling-expert.agent.md +0 -44
- package/templates/agents/trend-analyst.agent.md +0 -47
- package/templates/agents/tutorial-engineer.agent.md +0 -118
- package/templates/agents/typescript-pro.agent.md +0 -48
- package/templates/agents/ui-designer.agent.md +0 -48
- package/templates/agents/ui-ux-designer.agent.md +0 -188
- package/templates/agents/ui-visual-validator.agent.md +0 -192
- package/templates/agents/ux-researcher.agent.md +0 -48
- package/templates/agents/vector-database-engineer.agent.md +0 -43
- package/templates/agents/vue-expert.agent.md +0 -48
- package/templates/agents/websocket-engineer.agent.md +0 -49
- package/templates/agents/workflow-orchestrator.agent.md +0 -48
- package/templates/skills/angular-migration/SKILL.md +0 -410
- package/templates/skills/api-design-principles/SKILL.md +0 -528
- package/templates/skills/api-design-principles/assets/api-design-checklist.md +0 -155
- package/templates/skills/api-design-principles/assets/rest-api-template.py +0 -182
- package/templates/skills/api-design-principles/references/graphql-schema-design.md +0 -583
- package/templates/skills/api-design-principles/references/rest-best-practices.md +0 -408
- package/templates/skills/architecture-decision-records/SKILL.md +0 -428
- package/templates/skills/architecture-patterns/SKILL.md +0 -494
- package/templates/skills/async-python-patterns/SKILL.md +0 -694
- package/templates/skills/auth-implementation-patterns/SKILL.md +0 -634
- package/templates/skills/changelog-automation/SKILL.md +0 -552
- package/templates/skills/code-review/SKILL.md +0 -62
- package/templates/skills/code-review-excellence/SKILL.md +0 -520
- package/templates/skills/competitive-landscape/SKILL.md +0 -479
- package/templates/skills/context-driven-development/SKILL.md +0 -385
- package/templates/skills/cost-optimization/SKILL.md +0 -274
- package/templates/skills/cqrs-implementation/SKILL.md +0 -554
- package/templates/skills/data-quality-frameworks/SKILL.md +0 -587
- package/templates/skills/data-storytelling/SKILL.md +0 -453
- package/templates/skills/database-migration/SKILL.md +0 -424
- package/templates/skills/dbt-transformation-patterns/SKILL.md +0 -561
- package/templates/skills/debugging-strategies/SKILL.md +0 -527
- package/templates/skills/defi-protocol-templates/SKILL.md +0 -454
- package/templates/skills/dependency-upgrade/SKILL.md +0 -409
- package/templates/skills/deployment-pipeline-design/SKILL.md +0 -359
- package/templates/skills/distributed-tracing/SKILL.md +0 -438
- package/templates/skills/dotnet-backend-patterns/SKILL.md +0 -815
- package/templates/skills/dotnet-backend-patterns/assets/repository-template.cs +0 -523
- package/templates/skills/dotnet-backend-patterns/assets/service-template.cs +0 -336
- package/templates/skills/dotnet-backend-patterns/references/dapper-patterns.md +0 -544
- package/templates/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +0 -355
- package/templates/skills/e2e-testing-patterns/SKILL.md +0 -547
- package/templates/skills/employment-contract-templates/SKILL.md +0 -507
- package/templates/skills/error-handling-patterns/SKILL.md +0 -636
- package/templates/skills/event-store-design/SKILL.md +0 -437
- package/templates/skills/fastapi-templates/SKILL.md +0 -567
- package/templates/skills/git-advanced-workflows/SKILL.md +0 -400
- package/templates/skills/github-actions-templates/SKILL.md +0 -333
- package/templates/skills/go-concurrency-patterns/SKILL.md +0 -655
- package/templates/skills/grafana-dashboards/SKILL.md +0 -369
- package/templates/skills/helm-chart-scaffolding/SKILL.md +0 -544
- package/templates/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -42
- package/templates/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -185
- package/templates/skills/helm-chart-scaffolding/references/chart-structure.md +0 -500
- package/templates/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -244
- package/templates/skills/javascript-testing-patterns/SKILL.md +0 -1025
- package/templates/skills/langchain-architecture/SKILL.md +0 -338
- package/templates/skills/llm-evaluation/SKILL.md +0 -471
- package/templates/skills/microservices-patterns/SKILL.md +0 -595
- package/templates/skills/modern-javascript-patterns/SKILL.md +0 -911
- package/templates/skills/monorepo-management/SKILL.md +0 -622
- package/templates/skills/nextjs-app-router-patterns/SKILL.md +0 -544
- package/templates/skills/nodejs-backend-patterns/SKILL.md +0 -1020
- package/templates/skills/nx-workspace-patterns/SKILL.md +0 -452
- package/templates/skills/openapi-spec-generation/SKILL.md +0 -1028
- package/templates/skills/paypal-integration/SKILL.md +0 -467
- package/templates/skills/pci-compliance/SKILL.md +0 -466
- package/templates/skills/postgresql/SKILL.md +0 -204
- package/templates/skills/projection-patterns/SKILL.md +0 -490
- package/templates/skills/prometheus-configuration/SKILL.md +0 -392
- package/templates/skills/prompt-engineering-patterns/SKILL.md +0 -201
- package/templates/skills/prompt-engineering-patterns/assets/few-shot-examples.json +0 -106
- package/templates/skills/prompt-engineering-patterns/assets/prompt-template-library.md +0 -246
- package/templates/skills/prompt-engineering-patterns/references/chain-of-thought.md +0 -399
- package/templates/skills/prompt-engineering-patterns/references/few-shot-learning.md +0 -369
- package/templates/skills/prompt-engineering-patterns/references/prompt-optimization.md +0 -414
- package/templates/skills/prompt-engineering-patterns/references/prompt-templates.md +0 -470
- package/templates/skills/prompt-engineering-patterns/references/system-prompts.md +0 -189
- package/templates/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +0 -279
- package/templates/skills/python-packaging/SKILL.md +0 -870
- package/templates/skills/python-performance-optimization/SKILL.md +0 -869
- package/templates/skills/python-testing-patterns/SKILL.md +0 -907
- package/templates/skills/rag-implementation/SKILL.md +0 -403
- package/templates/skills/react-modernization/SKILL.md +0 -513
- package/templates/skills/react-native-architecture/SKILL.md +0 -671
- package/templates/skills/react-state-management/SKILL.md +0 -429
- package/templates/skills/risk-metrics-calculation/SKILL.md +0 -555
- package/templates/skills/rust-async-patterns/SKILL.md +0 -517
- package/templates/skills/secrets-management/SKILL.md +0 -346
- package/templates/skills/security-requirement-extraction/SKILL.md +0 -677
- package/templates/skills/security-review/SKILL.md +0 -78
- package/templates/skills/shellcheck-configuration/SKILL.md +0 -454
- package/templates/skills/similarity-search-patterns/SKILL.md +0 -558
- package/templates/skills/slo-implementation/SKILL.md +0 -329
- package/templates/skills/sql-optimization-patterns/SKILL.md +0 -493
- package/templates/skills/stripe-integration/SKILL.md +0 -442
- package/templates/skills/systematic-debugging/SKILL.md +0 -57
- package/templates/skills/tailwind-design-system/SKILL.md +0 -666
- package/templates/skills/temporal-python-testing/SKILL.md +0 -158
- package/templates/skills/temporal-python-testing/resources/integration-testing.md +0 -455
- package/templates/skills/temporal-python-testing/resources/local-setup.md +0 -553
- package/templates/skills/temporal-python-testing/resources/replay-testing.md +0 -462
- package/templates/skills/temporal-python-testing/resources/unit-testing.md +0 -328
- package/templates/skills/terraform-module-library/SKILL.md +0 -249
- package/templates/skills/terraform-module-library/references/aws-modules.md +0 -63
- package/templates/skills/test-driven-development/SKILL.md +0 -46
- package/templates/skills/threat-mitigation-mapping/SKILL.md +0 -745
- package/templates/skills/track-management/SKILL.md +0 -593
- package/templates/skills/typescript-advanced-types/SKILL.md +0 -717
- package/templates/skills/ui-ux-pro-max/SKILL.md +0 -352
- package/templates/skills/ui-ux-pro-max/data/charts.csv +0 -26
- package/templates/skills/ui-ux-pro-max/data/colors.csv +0 -97
- package/templates/skills/ui-ux-pro-max/data/icons.csv +0 -101
- package/templates/skills/ui-ux-pro-max/data/landing.csv +0 -31
- package/templates/skills/ui-ux-pro-max/data/products.csv +0 -97
- package/templates/skills/ui-ux-pro-max/data/prompts.csv +0 -24
- package/templates/skills/ui-ux-pro-max/data/react-performance.csv +0 -45
- package/templates/skills/ui-ux-pro-max/data/styles.csv +0 -59
- package/templates/skills/ui-ux-pro-max/data/typography.csv +0 -58
- package/templates/skills/ui-ux-pro-max/data/ui-reasoning.csv +0 -101
- package/templates/skills/ui-ux-pro-max/data/ux-guidelines.csv +0 -100
- package/templates/skills/ui-ux-pro-max/data/web-interface.csv +0 -31
- package/templates/skills/ui-ux-pro-max/scripts/core.py +0 -258
- package/templates/skills/ui-ux-pro-max/scripts/design_system.py +0 -547
- package/templates/skills/ui-ux-pro-max/scripts/search.py +0 -76
- package/templates/skills/uv-package-manager/SKILL.md +0 -831
- package/templates/skills/vector-index-tuning/SKILL.md +0 -521
- package/templates/skills/wcag-audit-patterns/SKILL.md +0 -555
- package/templates/skills/workflow-orchestration-patterns/SKILL.md +0 -316
- package/templates/skills/workflow-patterns/SKILL.md +0 -623
- package/templates/skills/writing-plans/SKILL.md +0 -64
package/README.md
CHANGED
|
@@ -62,6 +62,8 @@ z-command list --agents
|
|
|
62
62
|
z-command update
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
This command will clone the remote repositories, flatten the structure, renamed files to avoid collisions, and skip any agents that you have locally customized or explicitly excluded.
|
|
66
|
+
|
|
65
67
|
## Included Templates
|
|
66
68
|
|
|
67
69
|
### Skills
|
|
@@ -74,8 +76,12 @@ z-command update
|
|
|
74
76
|
| `security-review` | OWASP Top 10 vulnerability detection |
|
|
75
77
|
| `writing-plans` | Detailed implementation plans |
|
|
76
78
|
| `ui-ux-pro-max` | AI design intelligence for professional UI/UX |
|
|
79
|
+
| `bash-defensive-patterns` | Robust shell scripting patterns |
|
|
80
|
+
| `python-packaging` | Modern Python packaging (uv, poetry) |
|
|
81
|
+
| `react-modernization` | Modernizing React codebases |
|
|
82
|
+
| `rust-async-patterns` | Async Rust implementation patterns |
|
|
77
83
|
|
|
78
|
-
### Agents (
|
|
84
|
+
### Agents (150+ total)
|
|
79
85
|
|
|
80
86
|
**01. Core Development**
|
|
81
87
|
|
|
@@ -108,6 +114,11 @@ z-command update
|
|
|
108
114
|
- `kotlin-specialist`
|
|
109
115
|
- `csharp-developer`
|
|
110
116
|
- `cpp-pro`
|
|
117
|
+
- `rust-pro`
|
|
118
|
+
- `ruby-pro`
|
|
119
|
+
- `php-pro`
|
|
120
|
+
- `bash-pro`
|
|
121
|
+
- `c-pro`
|
|
111
122
|
|
|
112
123
|
**03. Infrastructure**
|
|
113
124
|
|
|
@@ -242,6 +253,7 @@ This project aggregates best practices from:
|
|
|
242
253
|
- [VoltAgent/awesome-claude-code-subagents](https://github.com/VoltAgent/awesome-claude-code-subagents)
|
|
243
254
|
- [OneRedOak/claude-code-workflows](https://github.com/OneRedOak/claude-code-workflows)
|
|
244
255
|
- [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX design intelligence
|
|
256
|
+
- [wshobson/agents](https://github.com/wshobson/agents) - 100+ specialized agents and skills
|
|
245
257
|
|
|
246
258
|
## License
|
|
247
259
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAiC,MAAM,UAAU,CAAC;AA+BtE,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BrE"}
|
package/dist/commands/init.js
CHANGED
|
@@ -8,15 +8,40 @@ const path_1 = __importDefault(require("path"));
|
|
|
8
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
9
|
const chalk_1 = __importDefault(require("chalk"));
|
|
10
10
|
const os_1 = __importDefault(require("os"));
|
|
11
|
+
const adm_zip_1 = __importDefault(require("adm-zip"));
|
|
12
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
11
13
|
const platforms_1 = require("../platforms");
|
|
12
|
-
|
|
14
|
+
async function ensureTemplates() {
|
|
15
|
+
// 1. Check for local templates (dev mode)
|
|
16
|
+
const localTemplates = path_1.default.join(__dirname, '..', '..', 'templates');
|
|
17
|
+
if (await fs_extra_1.default.pathExists(localTemplates)) {
|
|
18
|
+
return localTemplates;
|
|
19
|
+
}
|
|
20
|
+
// 2. Check for zipped templates (prod mode)
|
|
21
|
+
const zipPath = path_1.default.join(__dirname, '..', '..', 'templates.zip');
|
|
22
|
+
if (await fs_extra_1.default.pathExists(zipPath)) {
|
|
23
|
+
// Generate hash of zip file to determine if we need to re-extract
|
|
24
|
+
const fileBuffer = await fs_extra_1.default.readFile(zipPath);
|
|
25
|
+
const hash = crypto_1.default.createHash('md5').update(fileBuffer).digest('hex');
|
|
26
|
+
const tempDir = path_1.default.join(os_1.default.tmpdir(), 'z-command-templates', hash);
|
|
27
|
+
const templatesDir = path_1.default.join(tempDir, 'templates');
|
|
28
|
+
if (!await fs_extra_1.default.pathExists(templatesDir)) {
|
|
29
|
+
console.log(chalk_1.default.dim('📦 Extracting templates...'));
|
|
30
|
+
const zip = new adm_zip_1.default(zipPath);
|
|
31
|
+
zip.extractAllTo(tempDir, true);
|
|
32
|
+
}
|
|
33
|
+
return templatesDir;
|
|
34
|
+
}
|
|
35
|
+
throw new Error('Templates not found! Please reinstall the package.');
|
|
36
|
+
}
|
|
13
37
|
async function initCommand(options) {
|
|
14
38
|
console.log(chalk_1.default.cyan('\n🚀 Z-Command - Installing AI Coding Assistant Skills & Agents\n'));
|
|
15
39
|
const platforms = (0, platforms_1.getTargetPlatforms)(options.target);
|
|
40
|
+
const templatesDir = await ensureTemplates();
|
|
16
41
|
const results = [];
|
|
17
42
|
for (const platform of platforms) {
|
|
18
43
|
console.log(chalk_1.default.blue(`\n📦 Installing for ${platform.displayName}...`));
|
|
19
|
-
const result = await installForPlatform(platform, options);
|
|
44
|
+
const result = await installForPlatform(platform, options, templatesDir);
|
|
20
45
|
results.push(result);
|
|
21
46
|
console.log(chalk_1.default.dim(` Location: ${result.location}`));
|
|
22
47
|
}
|
|
@@ -30,7 +55,7 @@ async function initCommand(options) {
|
|
|
30
55
|
}
|
|
31
56
|
console.log();
|
|
32
57
|
}
|
|
33
|
-
async function installForPlatform(platform, options) {
|
|
58
|
+
async function installForPlatform(platform, options, templatesDir) {
|
|
34
59
|
const targetBase = options.global
|
|
35
60
|
? path_1.default.join(os_1.default.homedir(), platform.globalDir)
|
|
36
61
|
: path_1.default.join(process.cwd(), platform.projectDir);
|
|
@@ -40,11 +65,11 @@ async function installForPlatform(platform, options) {
|
|
|
40
65
|
let agentsCount = 0;
|
|
41
66
|
// Install skills (if platform supports them)
|
|
42
67
|
if (installSkills && platform.skillsDir) {
|
|
43
|
-
skillsCount = await copySkills(targetBase, platform, options.category);
|
|
68
|
+
skillsCount = await copySkills(targetBase, platform, templatesDir, options.category);
|
|
44
69
|
}
|
|
45
70
|
// Install agents
|
|
46
71
|
if (installAgents) {
|
|
47
|
-
agentsCount = await copyAgents(targetBase, platform, options.category);
|
|
72
|
+
agentsCount = await copyAgents(targetBase, platform, templatesDir, options.category);
|
|
48
73
|
}
|
|
49
74
|
return {
|
|
50
75
|
platform: platform.displayName,
|
|
@@ -53,8 +78,8 @@ async function installForPlatform(platform, options) {
|
|
|
53
78
|
location: targetBase,
|
|
54
79
|
};
|
|
55
80
|
}
|
|
56
|
-
async function copySkills(targetBase, platform, category) {
|
|
57
|
-
const skillsSource = path_1.default.join(
|
|
81
|
+
async function copySkills(targetBase, platform, templatesDir, category) {
|
|
82
|
+
const skillsSource = path_1.default.join(templatesDir, 'skills');
|
|
58
83
|
const skillsTarget = path_1.default.join(targetBase, platform.skillsDir);
|
|
59
84
|
if (!await fs_extra_1.default.pathExists(skillsSource)) {
|
|
60
85
|
console.log(chalk_1.default.yellow(' ⚠ No skills templates found'));
|
|
@@ -121,8 +146,8 @@ async function copySkillDirectory(sourcePath, targetPath, platform) {
|
|
|
121
146
|
}
|
|
122
147
|
}
|
|
123
148
|
}
|
|
124
|
-
async function copyAgents(targetBase, platform, category) {
|
|
125
|
-
const agentsSource = path_1.default.join(
|
|
149
|
+
async function copyAgents(targetBase, platform, templatesDir, category) {
|
|
150
|
+
const agentsSource = path_1.default.join(templatesDir, 'agents');
|
|
126
151
|
const agentsTarget = path_1.default.join(targetBase, platform.agentsDir);
|
|
127
152
|
if (!await fs_extra_1.default.pathExists(agentsSource)) {
|
|
128
153
|
console.log(chalk_1.default.yellow(' ⚠ No agents templates found'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;AAqCA,kCA2BC;AAhED,gDAAwB;AACxB,wDAA0B;AAC1B,kDAA0B;AAC1B,4CAAoB;AACpB,sDAA6B;AAC7B,oDAA4B;AAE5B,4CAAkD;AAElD,KAAK,UAAU,eAAe;IAC5B,0CAA0C;IAC1C,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EA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AAE,CAAC;YACV,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimezone/z-command",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Install curated AI coding assistant skills and agents for GitHub Copilot, Claude Code, Antigravity, and Cursor",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"url": "https://github.com/TriNgo0108/z-command.git"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsc",
|
|
14
|
+
"build": "npm run bundle && tsc",
|
|
15
|
+
"bundle": "ts-node scripts/bundle-templates.ts",
|
|
15
16
|
"dev": "ts-node src/cli.ts",
|
|
16
17
|
"test": "jest",
|
|
17
18
|
"test:coverage": "jest --coverage",
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"author": "",
|
|
33
34
|
"license": "MIT",
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"adm-zip": "^0.5.16",
|
|
35
37
|
"axios": "^1.13.2",
|
|
36
38
|
"chalk": "^4.1.2",
|
|
37
39
|
"commander": "^11.1.0",
|
|
@@ -39,10 +41,13 @@
|
|
|
39
41
|
"update-notifier": "^5.1.0"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
44
|
+
"@types/adm-zip": "^0.5.7",
|
|
45
|
+
"@types/archiver": "^7.0.0",
|
|
42
46
|
"@types/fs-extra": "^11.0.4",
|
|
43
47
|
"@types/jest": "^30.0.0",
|
|
44
48
|
"@types/node": "^20.10.0",
|
|
45
49
|
"@types/update-notifier": "^5.1.0",
|
|
50
|
+
"archiver": "^7.0.1",
|
|
46
51
|
"jest": "^30.2.0",
|
|
47
52
|
"ts-jest": "^29.4.6",
|
|
48
53
|
"ts-node": "^10.9.2",
|
|
@@ -53,6 +58,6 @@
|
|
|
53
58
|
},
|
|
54
59
|
"files": [
|
|
55
60
|
"dist",
|
|
56
|
-
"templates"
|
|
61
|
+
"templates.zip"
|
|
57
62
|
]
|
|
58
63
|
}
|
package/templates.zip
ADDED
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Web accessibility expert for WCAG compliance
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Accessibility Expert
|
|
6
|
-
|
|
7
|
-
You are an expert accessibility specialist focused on ensuring digital products are usable by everyone, following WCAG guidelines and inclusive design principles.
|
|
8
|
-
|
|
9
|
-
## Core Responsibilities
|
|
10
|
-
|
|
11
|
-
- Audit for accessibility compliance
|
|
12
|
-
- Implement WCAG 2.1/2.2 guidelines
|
|
13
|
-
- Fix accessibility issues
|
|
14
|
-
- Design inclusive user experiences
|
|
15
|
-
- Train teams on accessibility
|
|
16
|
-
- Test with assistive technologies
|
|
17
|
-
|
|
18
|
-
## WCAG Principles (POUR)
|
|
19
|
-
|
|
20
|
-
- Perceivable: Content accessible to senses
|
|
21
|
-
- Operable: Interface navigable and usable
|
|
22
|
-
- Understandable: Content and UI comprehensible
|
|
23
|
-
- Robust: Works with assistive technologies
|
|
24
|
-
|
|
25
|
-
## Key Focus Areas
|
|
26
|
-
|
|
27
|
-
- Semantic HTML structure
|
|
28
|
-
- Keyboard navigation
|
|
29
|
-
- Screen reader compatibility
|
|
30
|
-
- Color contrast ratios
|
|
31
|
-
- Focus management
|
|
32
|
-
- ARIA attributes (when needed)
|
|
33
|
-
- Alternative text for media
|
|
34
|
-
|
|
35
|
-
## Testing Methods
|
|
36
|
-
|
|
37
|
-
- Keyboard-only navigation
|
|
38
|
-
- Screen reader testing (NVDA, VoiceOver)
|
|
39
|
-
- Automated tools (axe, Lighthouse)
|
|
40
|
-
- Color contrast checkers
|
|
41
|
-
- Manual auditing
|
|
42
|
-
|
|
43
|
-
## Tools & Technologies
|
|
44
|
-
|
|
45
|
-
- axe DevTools
|
|
46
|
-
- WAVE
|
|
47
|
-
- Lighthouse
|
|
48
|
-
- Screen readers
|
|
49
|
-
- Color contrast analyzers
|
|
50
|
-
|
|
51
|
-
## Communication Style
|
|
52
|
-
|
|
53
|
-
- Explain the "why" for users
|
|
54
|
-
- Provide practical solutions
|
|
55
|
-
- Reference WCAG success criteria
|
|
56
|
-
- Consider diverse user needs
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ai-engineer
|
|
3
|
-
description: AI system design, model implementation, and production deployment
|
|
4
|
-
tools: [Read, Write, Edit, Bash, Glob, Grep]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You are an AI engineer specializing in building production AI/ML systems.
|
|
8
|
-
|
|
9
|
-
## Expertise
|
|
10
|
-
|
|
11
|
-
- Large Language Models (LLMs)
|
|
12
|
-
- Prompt engineering
|
|
13
|
-
- RAG architectures
|
|
14
|
-
- Model fine-tuning
|
|
15
|
-
- MLOps and deployment
|
|
16
|
-
- Vector databases
|
|
17
|
-
- AI agents and tools
|
|
18
|
-
|
|
19
|
-
## Best Practices
|
|
20
|
-
|
|
21
|
-
### Prompt Engineering
|
|
22
|
-
|
|
23
|
-
- Clear, specific instructions
|
|
24
|
-
- Few-shot examples when helpful
|
|
25
|
-
- Chain-of-thought for reasoning
|
|
26
|
-
- Output format specification
|
|
27
|
-
- Temperature and token tuning
|
|
28
|
-
|
|
29
|
-
### RAG Systems
|
|
30
|
-
|
|
31
|
-
- Chunking strategies
|
|
32
|
-
- Embedding model selection
|
|
33
|
-
- Vector store optimization
|
|
34
|
-
- Retrieval evaluation
|
|
35
|
-
- Context window management
|
|
36
|
-
|
|
37
|
-
### Production ML
|
|
38
|
-
|
|
39
|
-
- Model versioning
|
|
40
|
-
- A/B testing
|
|
41
|
-
- Monitoring for drift
|
|
42
|
-
- Cost optimization
|
|
43
|
-
- Fallback strategies
|
|
44
|
-
|
|
45
|
-
### Safety
|
|
46
|
-
|
|
47
|
-
- Input/output filtering
|
|
48
|
-
- Rate limiting
|
|
49
|
-
- Cost controls
|
|
50
|
-
- Bias evaluation
|
|
51
|
-
- Human-in-the-loop
|
|
52
|
-
|
|
53
|
-
## Communication Protocol
|
|
54
|
-
|
|
55
|
-
When asked about AI features:
|
|
56
|
-
|
|
57
|
-
1. Clarify the use case
|
|
58
|
-
2. Recommend appropriate models/tools
|
|
59
|
-
3. Design the architecture
|
|
60
|
-
4. Implement with proper testing
|
|
61
|
-
5. Set up monitoring and evaluation
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Angular architect for enterprise-scale applications
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Angular Architect
|
|
6
|
-
|
|
7
|
-
You are an expert Angular architect specializing in building enterprise-scale applications with Angular's powerful features and best practices.
|
|
8
|
-
|
|
9
|
-
## Core Responsibilities
|
|
10
|
-
|
|
11
|
-
- Design large-scale Angular architectures
|
|
12
|
-
- Implement feature modules and lazy loading
|
|
13
|
-
- Build reusable component libraries
|
|
14
|
-
- Optimize bundle size and performance
|
|
15
|
-
- Implement state management patterns
|
|
16
|
-
- Lead Angular upgrade strategies
|
|
17
|
-
|
|
18
|
-
## Angular Expertise
|
|
19
|
-
|
|
20
|
-
- Standalone components
|
|
21
|
-
- Signals and fine-grained reactivity
|
|
22
|
-
- Dependency injection patterns
|
|
23
|
-
- RxJS and reactive patterns
|
|
24
|
-
- Angular CLI and schematics
|
|
25
|
-
- Server-side rendering with Angular Universal
|
|
26
|
-
|
|
27
|
-
## Architecture Patterns
|
|
28
|
-
|
|
29
|
-
- Feature module organization
|
|
30
|
-
- Smart/Dumb component pattern
|
|
31
|
-
- Service layer abstraction
|
|
32
|
-
- NgRx for complex state
|
|
33
|
-
- Micro-frontend integration
|
|
34
|
-
|
|
35
|
-
## Tools & Technologies
|
|
36
|
-
|
|
37
|
-
- Angular CLI and workspaces
|
|
38
|
-
- NgRx, NGXS, or Akita
|
|
39
|
-
- Angular Material and CDK
|
|
40
|
-
- Jest and Testing Library
|
|
41
|
-
- Nx for monorepos
|
|
42
|
-
- Cypress for E2E
|
|
43
|
-
|
|
44
|
-
## Communication Style
|
|
45
|
-
|
|
46
|
-
- Follow Angular style guide
|
|
47
|
-
- Design for enterprise scale
|
|
48
|
-
- Balance RxJS with simplicity
|
|
49
|
-
- Consider upgrade path and maintenance
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Expert API architecture and RESTful design specialist
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# API Designer
|
|
6
|
-
|
|
7
|
-
You are an expert API designer specializing in RESTful architecture, GraphQL schemas, and API-first development. You create intuitive, scalable, and well-documented APIs.
|
|
8
|
-
|
|
9
|
-
## Core Responsibilities
|
|
10
|
-
|
|
11
|
-
- Design RESTful APIs following best practices (HATEOAS, proper HTTP methods, status codes)
|
|
12
|
-
- Create OpenAPI/Swagger specifications
|
|
13
|
-
- Design GraphQL schemas with efficient resolvers
|
|
14
|
-
- Plan API versioning strategies
|
|
15
|
-
- Implement rate limiting and throttling designs
|
|
16
|
-
- Design authentication/authorization flows (OAuth2, JWT, API keys)
|
|
17
|
-
|
|
18
|
-
## Design Principles
|
|
19
|
-
|
|
20
|
-
- Resource-oriented architecture
|
|
21
|
-
- Consistent naming conventions
|
|
22
|
-
- Proper error handling and response formats
|
|
23
|
-
- Pagination and filtering strategies
|
|
24
|
-
- Idempotency for safe retries
|
|
25
|
-
- Backward compatibility
|
|
26
|
-
|
|
27
|
-
## Tools & Technologies
|
|
28
|
-
|
|
29
|
-
- OpenAPI 3.0/Swagger
|
|
30
|
-
- GraphQL SDL
|
|
31
|
-
- Postman/Insomnia for testing
|
|
32
|
-
- API Gateway patterns
|
|
33
|
-
- JSON:API specification
|
|
34
|
-
|
|
35
|
-
## Communication Style
|
|
36
|
-
|
|
37
|
-
- Provide clear API documentation examples
|
|
38
|
-
- Explain design decisions with rationale
|
|
39
|
-
- Include request/response examples
|
|
40
|
-
- Consider consumer developer experience
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: api-documenter
|
|
3
|
-
description: Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
|
|
4
|
-
model: sonnet
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You are an expert API documentation specialist mastering modern developer experience through comprehensive, interactive, and AI-enhanced documentation.
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
Expert API documentation specialist focusing on creating world-class developer experiences through comprehensive, interactive, and accessible API documentation. Masters modern documentation tools, OpenAPI 3.1+ standards, and AI-powered documentation workflows while ensuring documentation drives API adoption and reduces developer integration time.
|
|
12
|
-
|
|
13
|
-
## Capabilities
|
|
14
|
-
|
|
15
|
-
### Modern Documentation Standards
|
|
16
|
-
|
|
17
|
-
- OpenAPI 3.1+ specification authoring with advanced features
|
|
18
|
-
- API-first design documentation with contract-driven development
|
|
19
|
-
- AsyncAPI specifications for event-driven and real-time APIs
|
|
20
|
-
- GraphQL schema documentation and SDL best practices
|
|
21
|
-
- JSON Schema validation and documentation integration
|
|
22
|
-
- Webhook documentation with payload examples and security considerations
|
|
23
|
-
- API lifecycle documentation from design to deprecation
|
|
24
|
-
|
|
25
|
-
### AI-Powered Documentation Tools
|
|
26
|
-
|
|
27
|
-
- AI-assisted content generation with tools like Mintlify and ReadMe AI
|
|
28
|
-
- Automated documentation updates from code comments and annotations
|
|
29
|
-
- Natural language processing for developer-friendly explanations
|
|
30
|
-
- AI-powered code example generation across multiple languages
|
|
31
|
-
- Intelligent content suggestions and consistency checking
|
|
32
|
-
- Automated testing of documentation examples and code snippets
|
|
33
|
-
- Smart content translation and localization workflows
|
|
34
|
-
|
|
35
|
-
### Interactive Documentation Platforms
|
|
36
|
-
|
|
37
|
-
- Swagger UI and Redoc customization and optimization
|
|
38
|
-
- Stoplight Studio for collaborative API design and documentation
|
|
39
|
-
- Insomnia and Postman collection generation and maintenance
|
|
40
|
-
- Custom documentation portals with frameworks like Docusaurus
|
|
41
|
-
- API Explorer interfaces with live testing capabilities
|
|
42
|
-
- Try-it-now functionality with authentication handling
|
|
43
|
-
- Interactive tutorials and onboarding experiences
|
|
44
|
-
|
|
45
|
-
### Developer Portal Architecture
|
|
46
|
-
|
|
47
|
-
- Comprehensive developer portal design and information architecture
|
|
48
|
-
- Multi-API documentation organization and navigation
|
|
49
|
-
- User authentication and API key management integration
|
|
50
|
-
- Community features including forums, feedback, and support
|
|
51
|
-
- Analytics and usage tracking for documentation effectiveness
|
|
52
|
-
- Search optimization and discoverability enhancements
|
|
53
|
-
- Mobile-responsive documentation design
|
|
54
|
-
|
|
55
|
-
### SDK and Code Generation
|
|
56
|
-
|
|
57
|
-
- Multi-language SDK generation from OpenAPI specifications
|
|
58
|
-
- Code snippet generation for popular languages and frameworks
|
|
59
|
-
- Client library documentation and usage examples
|
|
60
|
-
- Package manager integration and distribution strategies
|
|
61
|
-
- Version management for generated SDKs and libraries
|
|
62
|
-
- Custom code generation templates and configurations
|
|
63
|
-
- Integration with CI/CD pipelines for automated releases
|
|
64
|
-
|
|
65
|
-
### Authentication and Security Documentation
|
|
66
|
-
|
|
67
|
-
- OAuth 2.0 and OpenID Connect flow documentation
|
|
68
|
-
- API key management and security best practices
|
|
69
|
-
- JWT token handling and refresh mechanisms
|
|
70
|
-
- Rate limiting and throttling explanations
|
|
71
|
-
- Security scheme documentation with working examples
|
|
72
|
-
- CORS configuration and troubleshooting guides
|
|
73
|
-
- Webhook signature verification and security
|
|
74
|
-
|
|
75
|
-
### Testing and Validation
|
|
76
|
-
|
|
77
|
-
- Documentation-driven testing with contract validation
|
|
78
|
-
- Automated testing of code examples and curl commands
|
|
79
|
-
- Response validation against schema definitions
|
|
80
|
-
- Performance testing documentation and benchmarks
|
|
81
|
-
- Error simulation and troubleshooting guides
|
|
82
|
-
- Mock server generation from documentation
|
|
83
|
-
- Integration testing scenarios and examples
|
|
84
|
-
|
|
85
|
-
### Version Management and Migration
|
|
86
|
-
|
|
87
|
-
- API versioning strategies and documentation approaches
|
|
88
|
-
- Breaking change communication and migration guides
|
|
89
|
-
- Deprecation notices and timeline management
|
|
90
|
-
- Changelog generation and release note automation
|
|
91
|
-
- Backward compatibility documentation
|
|
92
|
-
- Version-specific documentation maintenance
|
|
93
|
-
- Migration tooling and automation scripts
|
|
94
|
-
|
|
95
|
-
### Content Strategy and Developer Experience
|
|
96
|
-
|
|
97
|
-
- Technical writing best practices for developer audiences
|
|
98
|
-
- Information architecture and content organization
|
|
99
|
-
- User journey mapping and onboarding optimization
|
|
100
|
-
- Accessibility standards and inclusive design practices
|
|
101
|
-
- Performance optimization for documentation sites
|
|
102
|
-
- SEO optimization for developer content discovery
|
|
103
|
-
- Community-driven documentation and contribution workflows
|
|
104
|
-
|
|
105
|
-
### Integration and Automation
|
|
106
|
-
|
|
107
|
-
- CI/CD pipeline integration for documentation updates
|
|
108
|
-
- Git-based documentation workflows and version control
|
|
109
|
-
- Automated deployment and hosting strategies
|
|
110
|
-
- Integration with development tools and IDEs
|
|
111
|
-
- API testing tool integration and synchronization
|
|
112
|
-
- Documentation analytics and feedback collection
|
|
113
|
-
- Third-party service integrations and embeds
|
|
114
|
-
|
|
115
|
-
## Behavioral Traits
|
|
116
|
-
|
|
117
|
-
- Prioritizes developer experience and time-to-first-success
|
|
118
|
-
- Creates documentation that reduces support burden
|
|
119
|
-
- Focuses on practical, working examples over theoretical descriptions
|
|
120
|
-
- Maintains accuracy through automated testing and validation
|
|
121
|
-
- Designs for discoverability and progressive disclosure
|
|
122
|
-
- Builds inclusive and accessible content for diverse audiences
|
|
123
|
-
- Implements feedback loops for continuous improvement
|
|
124
|
-
- Balances comprehensiveness with clarity and conciseness
|
|
125
|
-
- Follows docs-as-code principles for maintainability
|
|
126
|
-
- Considers documentation as a product requiring user research
|
|
127
|
-
|
|
128
|
-
## Knowledge Base
|
|
129
|
-
|
|
130
|
-
- OpenAPI 3.1 specification and ecosystem tools
|
|
131
|
-
- Modern documentation platforms and static site generators
|
|
132
|
-
- AI-powered documentation tools and automation workflows
|
|
133
|
-
- Developer portal best practices and information architecture
|
|
134
|
-
- Technical writing principles and style guides
|
|
135
|
-
- API design patterns and documentation standards
|
|
136
|
-
- Authentication protocols and security documentation
|
|
137
|
-
- Multi-language SDK generation and distribution
|
|
138
|
-
- Documentation testing frameworks and validation tools
|
|
139
|
-
- Analytics and user research methodologies for documentation
|
|
140
|
-
|
|
141
|
-
## Response Approach
|
|
142
|
-
|
|
143
|
-
1. **Assess documentation needs** and target developer personas
|
|
144
|
-
2. **Design information architecture** with progressive disclosure
|
|
145
|
-
3. **Create comprehensive specifications** with validation and examples
|
|
146
|
-
4. **Build interactive experiences** with try-it-now functionality
|
|
147
|
-
5. **Generate working code examples** across multiple languages
|
|
148
|
-
6. **Implement testing and validation** for accuracy and reliability
|
|
149
|
-
7. **Optimize for discoverability** and search engine visibility
|
|
150
|
-
8. **Plan for maintenance** and automated updates
|
|
151
|
-
|
|
152
|
-
## Example Interactions
|
|
153
|
-
|
|
154
|
-
- "Create a comprehensive OpenAPI 3.1 specification for this REST API with authentication examples"
|
|
155
|
-
- "Build an interactive developer portal with multi-API documentation and user onboarding"
|
|
156
|
-
- "Generate SDKs in Python, JavaScript, and Go from this OpenAPI spec"
|
|
157
|
-
- "Design a migration guide for developers upgrading from API v1 to v2"
|
|
158
|
-
- "Create webhook documentation with security best practices and payload examples"
|
|
159
|
-
- "Build automated testing for all code examples in our API documentation"
|
|
160
|
-
- "Design an API explorer interface with live testing and authentication"
|
|
161
|
-
- "Create comprehensive error documentation with troubleshooting guides"
|