natureco-cli 5.20.3 → 5.21.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.
package/package.json CHANGED
@@ -1,94 +1,95 @@
1
- {
2
- "name": "natureco-cli",
3
- "version": "5.20.3",
4
- "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
- "bin": {
6
- "natureco": "bin/natureco.js"
7
- },
8
- "files": [
9
- "bin/",
10
- "src/",
11
- "skills/",
12
- "README.md",
13
- "CHANGELOG.md",
14
- "AUDIT.md",
15
- "DEPLOY_v2.0.0.md"
16
- ],
17
- "scripts": {
18
- "test": "vitest run",
19
- "test:unit": "vitest run",
20
- "test:watch": "vitest",
21
- "test:coverage": "vitest run --coverage",
22
- "lint": "eslint src/ bin/ test/",
23
- "lint:fix": "eslint src/ bin/ test/ --fix",
24
- "lint:errors-only": "eslint src/ bin/ test/ --quiet",
25
- "smoke": "node --check bin/natureco.js && node bin/natureco.js help",
26
- "postinstall": "node bin/natureco.js doctor || true",
27
- "prepublishOnly": "node --check bin/natureco.js && eslint src/ bin/ test/ --quiet && vitest run"
28
- },
29
- "keywords": [
30
- "natureco",
31
- "ai",
32
- "ai-agent",
33
- "bot",
34
- "cli",
35
- "terminal",
36
- "openclaw-alternative",
37
- "claude-code-alternative",
38
- "multi-agent",
39
- "self-evolving-skills",
40
- "audit-log",
41
- "cost-optimization",
42
- "seo",
43
- "türkçe",
44
- "turkish",
45
- "whatsapp-bot",
46
- "telegram-bot",
47
- "discord-bot",
48
- "natureco-me"
49
- ],
50
- "author": {
51
- "name": "Gencay Olgun",
52
- "email": "hello@natureco.me",
53
- "url": "https://natureco.me"
54
- },
55
- "homepage": "https://natureco.me/cli",
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/natureco/natureco-cli.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/natureco/natureco-cli/issues"
62
- },
63
- "license": "MIT",
64
- "engines": {
65
- "node": ">=18.0.0"
66
- },
67
- "dependencies": {
68
- "@anthropic-ai/sdk": "^0.105.0",
69
- "@inquirer/prompts": "^8.5.0",
70
- "@slack/web-api": "^7.17.0",
71
- "@whiskeysockets/baileys": "^7.0.0-rc10",
72
- "chalk": "^4.1.2",
73
- "commander": "^11.1.0",
74
- "discord.js": "^14.26.4",
75
- "irc": "^0.5.2",
76
- "mattermost": "^3.4.0",
77
- "node-cron": "^4.2.1",
78
- "node-telegram-bot-api": "^0.67.0",
79
- "openai": "^6.44.0",
80
- "pino": "^8.21.0",
81
- "qrcode": "^1.5.4",
82
- "qrcode-terminal": "^0.12.0",
83
- "semver": "^7.8.1",
84
- "twilio": "^6.0.2",
85
- "ws": "^8.20.0"
86
- },
87
- "devDependencies": {
88
- "@eslint/js": "^9.39.4",
89
- "@vitest/coverage-v8": "^4.1.9",
90
- "eslint": "^9.39.4",
91
- "globals": "^15.15.0",
92
- "vitest": "^4.1.9"
93
- }
94
- }
1
+ {
2
+ "name": "natureco-cli",
3
+ "version": "5.21.0",
4
+ "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
+ "bin": {
6
+ "natureco": "bin/natureco.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "src/",
11
+ "scripts/",
12
+ "skills/",
13
+ "README.md",
14
+ "CHANGELOG.md",
15
+ "AUDIT.md",
16
+ "DEPLOY_v2.0.0.md"
17
+ ],
18
+ "scripts": {
19
+ "test": "vitest run",
20
+ "test:unit": "vitest run",
21
+ "test:watch": "vitest",
22
+ "test:coverage": "vitest run --coverage",
23
+ "lint": "eslint src/ bin/ test/",
24
+ "lint:fix": "eslint src/ bin/ test/ --fix",
25
+ "lint:errors-only": "eslint src/ bin/ test/ --quiet",
26
+ "smoke": "node --check bin/natureco.js && node bin/natureco.js help",
27
+ "postinstall": "node scripts/postinstall.js",
28
+ "prepublishOnly": "node --check bin/natureco.js && eslint src/ bin/ test/ --quiet && vitest run"
29
+ },
30
+ "keywords": [
31
+ "natureco",
32
+ "ai",
33
+ "ai-agent",
34
+ "bot",
35
+ "cli",
36
+ "terminal",
37
+ "openclaw-alternative",
38
+ "claude-code-alternative",
39
+ "multi-agent",
40
+ "self-evolving-skills",
41
+ "audit-log",
42
+ "cost-optimization",
43
+ "seo",
44
+ "türkçe",
45
+ "turkish",
46
+ "whatsapp-bot",
47
+ "telegram-bot",
48
+ "discord-bot",
49
+ "natureco-me"
50
+ ],
51
+ "author": {
52
+ "name": "Gencay Olgun",
53
+ "email": "hello@natureco.me",
54
+ "url": "https://natureco.me"
55
+ },
56
+ "homepage": "https://natureco.me/cli",
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/natureco-official/natureco-cli.git"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/natureco-official/natureco-cli/issues"
63
+ },
64
+ "license": "MIT",
65
+ "engines": {
66
+ "node": ">=18.0.0"
67
+ },
68
+ "dependencies": {
69
+ "@anthropic-ai/sdk": "^0.105.0",
70
+ "@inquirer/prompts": "^8.5.2",
71
+ "@slack/web-api": "^7.17.0",
72
+ "@whiskeysockets/baileys": "^7.0.0-rc10",
73
+ "chalk": "^4.1.2",
74
+ "commander": "^11.1.0",
75
+ "discord.js": "^14.26.4",
76
+ "irc": "^0.5.2",
77
+ "mattermost": "^3.4.0",
78
+ "node-cron": "^4.2.1",
79
+ "node-telegram-bot-api": "^0.67.0",
80
+ "openai": "^6.45.0",
81
+ "pino": "^8.21.0",
82
+ "qrcode": "^1.5.4",
83
+ "qrcode-terminal": "^0.12.0",
84
+ "semver": "^7.8.1",
85
+ "twilio": "^6.0.2",
86
+ "ws": "^8.20.0"
87
+ },
88
+ "devDependencies": {
89
+ "@eslint/js": "^10.0.1",
90
+ "@vitest/coverage-v8": "^4.1.9",
91
+ "eslint": "^10.6.0",
92
+ "globals": "^15.15.0",
93
+ "vitest": "^4.1.9"
94
+ }
95
+ }
@@ -0,0 +1,21 @@
1
+ const QRCode = require('qrcode');
2
+ const fs = require('fs');
3
+
4
+ // Standart QR data for WhatsApp web login (test QR)
5
+ // Gercek QR data Baileys'ten gelecek
6
+
7
+ const qrData = process.argv[2] || 'WhatsApp QR test data';
8
+ const outPath = process.argv[3] || '/Users/gencay/Downloads/whatsapp-qr.png';
9
+
10
+ QRCode.toFile(outPath, qrData, {
11
+ type: 'png',
12
+ width: 600,
13
+ margin: 2,
14
+ color: {
15
+ dark: '#000000',
16
+ light: '#FFFFFF'
17
+ }
18
+ }, (err) => {
19
+ if (err) console.error('Hata:', err);
20
+ else console.log('✓ QR PNG:', outPath);
21
+ });
@@ -0,0 +1,5 @@
1
+ {
2
+ "created": 158,
3
+ "skipped": 0,
4
+ "total": 158
5
+ }
@@ -0,0 +1,262 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const SKILLS_DIR = path.resolve(__dirname, '..', 'skills');
5
+
6
+ const CATEGORIES = {
7
+ productivity: { label: 'Productivity', count: 30, skills: [
8
+ { name: 'email-management', description: 'Manage email efficiently with folders, filters, and bulk operations' },
9
+ { name: 'calendar-optimization', description: 'Optimize calendar scheduling with time blocking and meeting buffers' },
10
+ { name: 'task-prioritization', description: 'Prioritize tasks using Eisenhower matrix, MoSCoW, and impact-effort frameworks' },
11
+ { name: 'time-blocking', description: 'Schedule focused work blocks with deep work and context-switching minimization' },
12
+ { name: 'meeting-notes', description: 'Generate structured meeting notes with action items, decisions, and attendees' },
13
+ { name: 'document-template', description: 'Create reusable document templates for proposals, reports, and memos' },
14
+ { name: 'workflow-automation', description: 'Automate repetitive workflows using scripts, cron, and no-code tools' },
15
+ { name: 'bulk-file-operations', description: 'Perform bulk file rename, move, copy, and format conversions' },
16
+ { name: 'clipboard-master', description: 'Manage clipboard history with snippets, templates, and quick paste' },
17
+ { name: 'text-expansion', description: 'Use text expansion shortcuts for frequently typed responses and templates' },
18
+ { name: 'snippet-manager', description: 'Organize code and text snippets with tagging, search, and category groups' },
19
+ { name: 'password-generator', description: 'Generate strong passwords with configurable length, symbols, and entropy' },
20
+ { name: 'contact-management', description: 'Manage contacts with deduplication, categorization, and export tools' },
21
+ { name: 'expense-tracking', description: 'Track expenses with categorization, receipt capture, and monthly reporting' },
22
+ { name: 'project-tracking', description: 'Track project progress with milestones, dependencies, and status reports' },
23
+ { name: 'habit-tracker', description: 'Track daily habits with streaks, reminders, and progress visualization' },
24
+ { name: 'daily-journal', description: 'Maintain a daily journal with prompts, mood tracking, and search' },
25
+ { name: 'weekly-review', description: 'Conduct weekly reviews with accomplishments, lessons, and next-week planning' },
26
+ { name: 'goal-setting', description: 'Set SMART goals with OKR breakdown, tracking, and quarterly reviews' },
27
+ { name: 'decision-matrix', description: 'Evaluate options using weighted decision matrices with criteria scoring' },
28
+ { name: 'pomodoro-timer', description: 'Implement Pomodoro technique with customizable focus/break intervals' },
29
+ { name: 'focus-mode', description: 'Enable distraction-free writing and coding with minimal UI and noise blocking' },
30
+ { name: 'distraction-blocker', description: 'Block distracting websites, notifications, and apps during focus sessions' },
31
+ { name: 'batch-processing', description: 'Batch similar tasks together to minimize context switching overhead' },
32
+ { name: 'keyboard-shortcuts', description: 'Master keyboard shortcuts for IDE, terminal, and common applications' },
33
+ { name: 'template-library', description: 'Build and maintain a personal library of reusable templates by category' },
34
+ { name: 'note-organization', description: 'Organize notes with hierarchical tags, linking, and bi-directional references' },
35
+ { name: 'knowledge-base', description: 'Build a personal knowledge base with articles, summaries, and cross-references' },
36
+ { name: 'research-compiler', description: 'Compile research from multiple sources with annotations and synthesis' },
37
+ { name: 'meeting-scheduler', description: 'Schedule meetings across time zones with availability polling and reminders' },
38
+ ]},
39
+
40
+ softwareDevelopment: { label: 'Software Development', count: 50, skills: [
41
+ { name: 'git-workflow', description: 'Follow Git best practices with branch strategies, commit conventions, and PR templates' },
42
+ { name: 'code-review-checklist', description: 'Review code systematically with checklists for security, performance, and style' },
43
+ { name: 'api-design', description: 'Design RESTful and GraphQL APIs with consistency, versioning, and documentation' },
44
+ { name: 'database-schema-design', description: 'Design normalized database schemas with indexes, constraints, and relationships' },
45
+ { name: 'testing-strategy', description: 'Define testing strategy covering unit, integration, e2e, and property-based tests' },
46
+ { name: 'ci-cd-pipeline', description: 'Set up CI/CD pipelines with build, test, lint, security scan, and deploy stages' },
47
+ { name: 'docker-optimization', description: 'Optimize Docker images with multi-stage builds, layer caching, and minimal base images' },
48
+ { name: 'kubernetes-deployment', description: 'Deploy applications to Kubernetes with Helm charts, probes, and auto-scaling' },
49
+ { name: 'microservices-architecture', description: 'Design microservices with bounded contexts, event-driven communication, and API gateways' },
50
+ { name: 'rest-api-patterns', description: 'Implement REST API patterns including pagination, filtering, HATEOAS, and idempotency' },
51
+ { name: 'graphql-design', description: 'Design GraphQL schemas with resolvers, data loaders, subscriptions, and federation' },
52
+ { name: 'error-handling', description: 'Handle errors consistently with typed exceptions, fallbacks, and user-friendly messages' },
53
+ { name: 'logging-best-practices', description: 'Implement structured logging with levels, context, correlation IDs, and log rotation' },
54
+ { name: 'monitoring-setup', description: 'Set up monitoring with metrics, alerts, dashboards, and distributed tracing' },
55
+ { name: 'security-audit', description: 'Audit code for OWASP Top 10 vulnerabilities, dependency risks, and secret leaks' },
56
+ { name: 'performance-optimization', description: 'Optimize application performance with profiling, caching, lazy loading, and CDN' },
57
+ { name: 'code-migration', description: 'Plan and execute code migrations across languages, frameworks, or architectures' },
58
+ { name: 'dependency-management', description: 'Manage dependencies with version pinning, audit, update automation, and lock files' },
59
+ { name: 'refactoring-strategy', description: 'Refactor code incrementally with strangle pattern, feature flags, and safety nets' },
60
+ { name: 'documentation-gen', description: 'Generate documentation from code with JSDoc, TypeDoc, OpenAPI, and storybooks' },
61
+ { name: 'changelog-generation', description: 'Generate changelogs from conventional commits with semantic versioning bumps' },
62
+ { name: 'semantic-versioning', description: 'Apply semantic versioning with breaking change detection and automated release notes' },
63
+ { name: 'monorepo-setup', description: 'Set up monorepo with workspace tools, shared configs, and dependency graph awareness' },
64
+ { name: 'package-publishing', description: 'Publish packages to npm, PyPI, or Maven with automated builds and provenance' },
65
+ { name: 'environment-config', description: 'Manage environment configurations with validation, defaults, and secret injection' },
66
+ { name: 'secrets-management', description: 'Manage secrets with vaults, encryption, rotation policies, and access audit' },
67
+ { name: 'authentication-patterns', description: 'Implement authentication with JWT, OAuth2, SSO, MFA, and session management' },
68
+ { name: 'authorization-rbac', description: 'Implement role-based access control with permissions, policies, and attribute checks' },
69
+ { name: 'rate-limiting', description: 'Implement rate limiting with token bucket, sliding window, and distributed counters' },
70
+ { name: 'caching-strategy', description: 'Design caching strategy with Redis, CDN, browser cache, and cache invalidation patterns' },
71
+ { name: 'database-migrations', description: 'Manage database migrations with version control, rollbacks, and zero-downtime deploys' },
72
+ { name: 'data-backup', description: 'Implement data backup strategy with snapshots, replication, and disaster recovery plans' },
73
+ { name: 'api-versioning', description: 'Version APIs with URL paths, headers, or content negotiation and deprecation policies' },
74
+ { name: 'webhook-handling', description: 'Handle webhooks with signature verification, retry logic, and idempotent processing' },
75
+ { name: 'event-driven-architecture', description: 'Design event-driven systems with event sourcing, CQRS, and message brokers' },
76
+ { name: 'message-queues', description: 'Use message queues for async processing with dead-letter queues and consumer groups' },
77
+ { name: 'search-implementation', description: 'Implement full-text search with Elasticsearch, Meilisearch, or PostgreSQL FTS' },
78
+ { name: 'file-upload-handling', description: 'Handle file uploads with validation, streaming, virus scanning, and CDN storage' },
79
+ { name: 'email-service', description: 'Build email services with templates, sending, tracking, and bounce handling' },
80
+ { name: 'push-notifications', description: 'Implement push notifications for web, iOS, and Android with segmentation' },
81
+ { name: 'real-time-communication', description: 'Implement real-time features with WebSockets, SSE, and WebRTC' },
82
+ { name: 'state-management', description: 'Manage application state with stores, reducers, selectors, and persistence' },
83
+ { name: 'form-validation', description: 'Validate forms with schema validation, error messages, and real-time feedback' },
84
+ { name: 'responsive-design', description: 'Build responsive UIs with mobile-first CSS, breakpoints, and adaptive layouts' },
85
+ { name: 'accessibility-audit', description: 'Audit accessibility with ARIA roles, keyboard navigation, screen reader support, and contrast' },
86
+ { name: 'localization-i18n', description: 'Implement i18n with translation files, locale detection, and pluralization rules' },
87
+ { name: 'seo-optimization', description: 'Optimize for search engines with meta tags, structured data, sitemaps, and SSR' },
88
+ { name: 'analytics-setup', description: 'Set up analytics with event tracking, user properties, funnels, and dashboards' },
89
+ { name: 'a-b-testing', description: 'Implement A/B testing with feature flags, experiment frameworks, and statistical analysis' },
90
+ { name: 'feature-flags', description: 'Manage feature flags with gradual rollout, kill switches, and targeting rules' },
91
+ ]},
92
+
93
+ aiAgents: { label: 'AI Agents', count: 30, skills: [
94
+ { name: 'prompt-engineering', description: 'Craft effective prompts with system instructions, examples, and output formatting' },
95
+ { name: 'rag-implementation', description: 'Implement Retrieval-Augmented Generation with document chunking, embedding, and retrieval' },
96
+ { name: 'vector-database-setup', description: 'Set up vector databases with indexing, similarity search, and hybrid retrieval' },
97
+ { name: 'embedding-generation', description: 'Generate and optimize embeddings for text, images, and multimodal content' },
98
+ { name: 'llm-chaining', description: 'Chain LLM calls with output parsing, context passing, and conditional branching' },
99
+ { name: 'tool-calling-patterns', description: 'Implement tool calling with function schemas, parallel execution, and result handling' },
100
+ { name: 'agent-orchestration', description: 'Orchestrate multi-step agent workflows with planning, execution, and monitoring' },
101
+ { name: 'multi-agent-systems', description: 'Design multi-agent systems with specialized roles, communication, and coordination' },
102
+ { name: 'knowledge-graph', description: 'Build knowledge graphs with entities, relationships, and graph traversal queries' },
103
+ { name: 'semantic-search', description: 'Implement semantic search with dense/sparse embeddings and hybrid ranking' },
104
+ { name: 'fine-tuning-prep', description: 'Prepare datasets for fine-tuning with quality filtering, deduplication, and formatting' },
105
+ { name: 'model-evaluation', description: 'Evaluate LLM outputs with metrics, human feedback, and automated test suites' },
106
+ { name: 'hallucination-detection', description: 'Detect hallucinations with fact verification, consistency checks, and confidence scoring' },
107
+ { name: 'context-window-management', description: 'Manage context windows with sliding windows, summarization, and selective inclusion' },
108
+ { name: 'token-optimization', description: 'Optimize token usage with compression, truncation, and efficient prompting' },
109
+ { name: 'streaming-responses', description: 'Implement streaming responses with SSE, chunked transfer, and progressive rendering' },
110
+ { name: 'function-calling', description: 'Define and execute function calls with parameter validation, retries, and error recovery' },
111
+ { name: 'structured-output', description: 'Generate structured outputs with JSON schema, type validation, and error correction' },
112
+ { name: 'content-generation', description: 'Generate content with tone control, brand voice, and template-based production' },
113
+ { name: 'summarization-techniques', description: 'Summarize text with extractive, abstractive, and query-focused techniques' },
114
+ { name: 'classification-pipeline', description: 'Build text classification pipelines with zero-shot, few-shot, and fine-tuned models' },
115
+ { name: 'entity-extraction', description: 'Extract entities from text with NER, regex patterns, and LLM-based extraction' },
116
+ { name: 'sentiment-analysis', description: 'Analyze sentiment with polarity scoring, aspect-based analysis, and emotion detection' },
117
+ { name: 'language-translation', description: 'Translate content with context preservation, glossary terms, and quality checks' },
118
+ { name: 'code-generation', description: 'Generate code from natural language descriptions with language and framework awareness' },
119
+ { name: 'code-explanation', description: 'Explain code with natural language summaries, complexity analysis, and design rationale' },
120
+ { name: 'test-generation', description: 'Generate unit, integration, and e2e tests from code with coverage analysis' },
121
+ { name: 'data-extraction', description: 'Extract structured data from unstructured text with schema-guided parsing' },
122
+ { name: 'chat-bot-design', description: 'Design conversational agents with personality, context handling, and fallback strategies' },
123
+ { name: 'agent-memory', description: 'Implement agent memory with episodic, semantic, and procedural memory stores' },
124
+ ]},
125
+
126
+ intelligence: { label: 'Intelligence & General', count: 28, skills: [
127
+ { name: 'data-analysis', description: 'Analyze data with statistical methods, visualizations, and actionable insights' },
128
+ { name: 'visualization-creation', description: 'Create charts and dashboards with libraries like D3, Chart.js, and matplotlib' },
129
+ { name: 'report-generation', description: 'Generate reports with data aggregation, narrative writing, and PDF/HTML output' },
130
+ { name: 'statistical-analysis', description: 'Apply statistical methods including hypothesis testing, regression, and Bayesian inference' },
131
+ { name: 'machine-learning-pipeline', description: 'Build ML pipelines with feature engineering, training, evaluation, and deployment' },
132
+ { name: 'data-cleaning', description: 'Clean datasets with missing value handling, outlier detection, and normalization' },
133
+ { name: 'feature-engineering', description: 'Engineer features with transformation, encoding, selection, and dimensionality reduction' },
134
+ { name: 'model-deployment', description: 'Deploy ML models with serving infrastructure, A/B testing, and monitoring' },
135
+ { name: 'excel-automation', description: 'Automate Excel workflows with formulas, macros, VBA, and Python integration' },
136
+ { name: 'csv-processing', description: 'Process CSV files with parsing, validation, transformation, and large-file streaming' },
137
+ { name: 'json-transformation', description: 'Transform JSON data with jq, JSONPath, mapping, and schema validation' },
138
+ { name: 'web-scraping', description: 'Scrape websites with selectors, pagination, rate limiting, and anti-bot avoidance' },
139
+ { name: 'pdf-processing', description: 'Process PDFs with text extraction, form filling, merging, and OCR' },
140
+ { name: 'image-processing', description: 'Process images with resizing, format conversion, filters, and OCR' },
141
+ { name: 'audio-transcription', description: 'Transcribe audio with speaker diarization, timestamps, and confidence scoring' },
142
+ { name: 'video-editing', description: 'Edit videos with cutting, transitions, subtitles, and compression' },
143
+ { name: 'file-conversion', description: 'Convert between file formats for documents, images, audio, and video' },
144
+ { name: 'data-validation', description: 'Validate data with schema checks, type constraints, range validation, and uniqueness' },
145
+ { name: 'regex-mastery', description: 'Write and debug regular expressions for pattern matching, extraction, and validation' },
146
+ { name: 'sql-query-optimization', description: 'Optimize SQL queries with indexes, explain plans, and query restructuring' },
147
+ { name: 'cron-scheduling', description: 'Schedule tasks with cron expressions, timezone handling, and failure notifications' },
148
+ { name: 'backup-strategy', description: 'Design backup strategies with 3-2-1 rule, encryption, and recovery testing' },
149
+ { name: 'system-diagnostics', description: 'Diagnose system issues with logs, metrics, traces, and performance profiling' },
150
+ { name: 'network-troubleshooting', description: 'Troubleshoot network issues with ping, traceroute, DNS checks, and packet analysis' },
151
+ { name: 'bash-scripting', description: 'Write bash scripts with error handling, argument parsing, and idempotent operations' },
152
+ { name: 'powershell-automation', description: 'Automate Windows tasks with PowerShell scripts, modules, and remoting' },
153
+ { name: 'cross-platform-compat', description: 'Write cross-platform code with OS detection, path handling, and conditional imports' },
154
+ { name: 'dev-environment-setup', description: 'Set up development environments with dotfiles, package managers, and containerization' },
155
+ ]},
156
+
157
+ tokenSavings: { label: 'Token Savings', count: 10, skills: [
158
+ { name: 'prompt-compression', description: 'Compress prompts by removing redundancy, using abbreviations, and minimizing whitespace' },
159
+ { name: 'context-pruning', description: 'Prune context by removing irrelevant messages, truncating long content, and deduplication' },
160
+ { name: 'message-summarization', description: 'Summarize conversation history into compact representations preserving key information' },
161
+ { name: 'token-budgeting', description: 'Budget tokens per conversation turn with allocation for system, tools, and user content' },
162
+ { name: 'efficient-formatting', description: 'Format messages efficiently using compact JSON, minimal markdown, and abbreviated schemas' },
163
+ { name: 'cache-responses', description: 'Cache LLM responses for identical or similar queries to avoid redundant API calls' },
164
+ { name: 'selective-memory', description: 'Store only high-signal memories by filtering trivial interactions and deduplicating facts' },
165
+ { name: 'chunking-strategy', description: 'Chunk large documents into optimal-sized segments for retrieval and processing' },
166
+ { name: 'priority-filtering', description: 'Filter content by priority level before sending to LLM, dropping low-value tokens' },
167
+ { name: 'batch-api-calls', description: 'Batch multiple API calls into single requests when the provider supports batching' },
168
+ ]},
169
+
170
+ planningExecution: { label: 'Planning & Execution', count: 10, skills: [
171
+ { name: 'sprint-planning', description: 'Plan sprints with backlog refinement, capacity calculation, and commitment-based scoping' },
172
+ { name: 'roadmap-creation', description: 'Create product roadmaps with themes, epics, timelines, and dependency mapping' },
173
+ { name: 'task-decomposition', description: 'Decompose large tasks into small, estimable subtasks with acceptance criteria' },
174
+ { name: 'estimation-techniques', description: 'Estimate effort using story points, t-shirt sizing, and #noestimates approaches' },
175
+ { name: 'risk-assessment', description: 'Assess project risks with probability-impact matrices, mitigation plans, and monitoring' },
176
+ { name: 'milestone-tracking', description: 'Track milestones with progress indicators, blockers, and stakeholder updates' },
177
+ { name: 'stakeholder-communication', description: 'Communicate with stakeholders through status reports, demos, and escalation paths' },
178
+ { name: 'retrospectives', description: 'Run retrospectives with start-stop-continue, sailboat, and 4L frameworks' },
179
+ { name: 'continuous-improvement', description: 'Implement continuous improvement with metrics, feedback loops, and kaizen culture' },
180
+ { name: 'execution-monitoring', description: 'Monitor execution with OKR tracking, velocity charts, and burndown/burnup reports' },
181
+ ]},
182
+ };
183
+
184
+ function generateFrontmatter(name, description, category) {
185
+ return `---
186
+ name: ${name}
187
+ description: ${description}
188
+ category: ${category}
189
+ ---`;
190
+ }
191
+
192
+ function generateBody(name, description) {
193
+ const title = name.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ');
194
+ return `
195
+ # ${title}
196
+
197
+ ## Overview
198
+ ${description}. This skill helps you apply structured, repeatable methods for consistent results.
199
+
200
+ ## When to Use
201
+ - When you need to apply ${title.toLowerCase()} best practices
202
+ - When establishing processes or standards for your workflow
203
+ - When training team members on ${title.toLowerCase()}
204
+ - When automating or optimizing ${title.toLowerCase()} tasks
205
+
206
+ ## Instructions
207
+ 1. **Assess**: Evaluate the current state, requirements, and constraints
208
+ 2. **Plan**: Define the approach, steps, and success criteria
209
+ 3. **Execute**: Follow the established patterns and best practices
210
+ 4. **Verify**: Check results against expected outcomes and quality standards
211
+ 5. **Iterate**: Refine based on feedback and lessons learned
212
+
213
+ ## Examples
214
+ \`\`\`
215
+ User: Help me apply ${title.toLowerCase()} for my current project
216
+ Assistant: I'll help you apply ${title.toLowerCase()} step by step...
217
+ \`\`\`
218
+
219
+ ## Related Skills
220
+ - Use with \`workflow\` tool for orchestrated execution
221
+ - Combine with \`task\` tool for delegated processing
222
+ - Reference \`system-prompt\` for system-level integration
223
+ `;
224
+ }
225
+
226
+ let totalCreated = 0;
227
+ let totalSkipped = 0;
228
+
229
+ for (const [catKey, cat] of Object.entries(CATEGORIES)) {
230
+ console.log(`\n=== ${cat.label} (${cat.skills.length}) ===`);
231
+ for (const skill of cat.skills) {
232
+ const skillDir = path.join(SKILLS_DIR, skill.name);
233
+ const skillFile = path.join(skillDir, 'SKILL.md');
234
+
235
+ if (fs.existsSync(skillFile)) {
236
+ console.log(` ⏭ ${skill.name} (already exists)`);
237
+ totalSkipped++;
238
+ continue;
239
+ }
240
+
241
+ const frontmatter = generateFrontmatter(skill.name, skill.description, cat.label);
242
+ const body = generateBody(skill.name, skill.description);
243
+ const content = `${frontmatter}\n${body}`;
244
+
245
+ fs.mkdirSync(skillDir, { recursive: true });
246
+ fs.writeFileSync(skillFile, content);
247
+ console.log(` ✅ ${skill.name}`);
248
+ totalCreated++;
249
+ }
250
+ }
251
+
252
+ console.log('\n\n=== Summary ===');
253
+ console.log(`Created: ${totalCreated}`);
254
+ console.log(`Skipped: ${totalSkipped}`);
255
+ console.log(`Total: ${totalCreated + totalSkipped}`);
256
+
257
+ const skillDirs = fs.readdirSync(SKILLS_DIR).filter(f => fs.statSync(path.join(SKILLS_DIR, f)).isDirectory());
258
+ console.log(`\nSkills directory now has ${skillDirs.length} skill directories.`);
259
+
260
+ const logPath = path.resolve(__dirname, 'import-curated-skills-log.json');
261
+ fs.writeFileSync(logPath, JSON.stringify({ created: totalCreated, skipped: totalSkipped, total: totalCreated + totalSkipped }, null, 2));
262
+ console.log(`\nLog: ${logPath}`);