@harshitj183/ai-skills 2.2.5 → 2.2.7

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 (43) hide show
  1. package/README.md +54 -2
  2. package/SKILL.md +60 -4
  3. package/bin/cli.js +65 -14
  4. package/package.json +19 -32
  5. package/registry/skill_bank.json +1168 -0
  6. package/roles/backend_expert.md +3 -0
  7. package/roles/code_reviewer.md +28 -0
  8. package/roles/frontend_expert.md +3 -0
  9. package/roles/gpt5_core.md +3 -0
  10. package/roles/product_manager.md +3 -0
  11. package/roles/security_auditor.md +3 -0
  12. package/roles/subagent_orchestrator.md +26 -0
  13. package/roles/technical_writer.md +3 -0
  14. package/roles/ui_ux_designer.md +3 -0
  15. package/roles/wisdom_extractor.md +3 -0
  16. package/skills/ai_history_maintenance.md +17 -12
  17. package/skills/anthropic_documents.md +3 -0
  18. package/skills/antigravity_mastery.md +3 -0
  19. package/skills/azure_graph_integrator.md +3 -0
  20. package/skills/composio_integrator.md +3 -0
  21. package/skills/github_automation.md +3 -0
  22. package/skills/hashicorp_terraform.md +3 -0
  23. package/skills/letta_agent_memory.md +3 -0
  24. package/skills/lifecycle/brainstorming.md +24 -0
  25. package/skills/lifecycle/review_protocol.md +25 -0
  26. package/skills/mcp_master.md +3 -0
  27. package/skills/openai_structured_outputs.md +3 -0
  28. package/skills/orchestration/external_skill_retrieval.md +30 -0
  29. package/skills/orchestration/parallel_agent_dispatcher.md +32 -0
  30. package/skills/orchestration/plan_architect.md +22 -0
  31. package/skills/orchestration/plan_executor.md +20 -0
  32. package/skills/playwright_testing.md +3 -0
  33. package/skills/progressive_disclosure.md +26 -0
  34. package/skills/prompt_reasoning_trees.md +3 -0
  35. package/skills/react_best_practices.md +3 -0
  36. package/skills/react_native_performance.md +3 -0
  37. package/skills/sanity_architecture.md +3 -0
  38. package/skills/stripe_integration.md +3 -0
  39. package/skills/supabase_architect.md +3 -0
  40. package/skills/systematic_debugging.md +34 -0
  41. package/skills/tdd_mastery.md +32 -0
  42. package/skills/vercel_cloudflare_deploy.md +3 -0
  43. package/skills/writing_skills.md +26 -0
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  <div align="center">
2
+ <img src="assets/hero.png" width="850" alt="AI Skills Library Hero" />
3
+ <br />
2
4
  <img src="https://cdn.simpleicons.org/openai/000000/ffffff" width="60" alt="AI Icon" />
3
5
  <h1>Smart Instructions Library of AI Skill</h1>
4
6
 
@@ -25,6 +27,10 @@ Our interactive CLI module gives you absolute control over what skills are deplo
25
27
  npx @harshitj183/ai-skills <command>
26
28
  ```
27
29
 
30
+ <p align="center">
31
+ <img src="assets/init_demo.png" width="700" alt="CLI Init Demo" />
32
+ </p>
33
+
28
34
  ### Available Commands:
29
35
  1. **`init`** – Installs the full library quietly by default (perfect for letting your AI agent select skills dynamically).
30
36
  - `npx @harshitj183/ai-skills init -i` (Interactive picker)
@@ -32,6 +38,7 @@ npx @harshitj183/ai-skills <command>
32
38
  2. **`configure`** – Auto-detects and writes the rules file for your specific IDE (`.cursorrules`, `.windsurfrules`, `CLAUDE.md`, etc.).
33
39
  3. **`update`** – Safely pulls the newest official skills from the registry without overwriting your custom skills.
34
40
  4. **`create <skill_name>`** – Scaffolds a new highly-optimized custom Mega-Skill inside `smart-instructions/custom/`.
41
+ 5. **`fetch <skill_name>`** – Fetches an external skill from the 100+ curated options in the Skill Bank registry.
35
42
 
36
43
  ---
37
44
 
@@ -54,21 +61,55 @@ The central controller. This file dictates how the AI behaves: commanding aggres
54
61
 
55
62
  ### 2. The 8 Master Roles (`roles/`)
56
63
  Eliminate the need for extensive prompting. Just tag a role file.
57
- - `backend_expert.md`, `frontend_expert.md`, `gpt5_core.md`, `product_manager.md`, `security_auditor.md`, `technical_writer.md`, `ui_ux_designer.md`, `wisdom_extractor.md`
64
+ - `backend_expert.md`, `frontend_expert.md`, `gpt5_core.md`, `subagent_orchestrator.md`, `code_reviewer.md`, `product_manager.md`, `security_auditor.md`, `technical_writer.md`, `ui_ux_designer.md`, `wisdom_extractor.md`
58
65
 
59
66
  ### 3. The 17 Mega-Skills (`skills/`)
60
67
  Give your AI absolute technical dominance over specific frameworks.
61
68
 
62
69
  | Category | Skills Included | Example Technologies |
63
70
  | :--- | :--- | :--- |
71
+ | **<img src="https://cdn.simpleicons.org/fastapi" width="16" align="center"/> Orchestration (WAVE 4)** | `parallel_agent_dispatcher.md`, `plan_architect.md`, `plan_executor.md`, `external_skill_retrieval.md` | Concurrent subagents, Blueprints, Skill Bank fetching |
72
+ | **<img src="https://cdn.simpleicons.org/vlc" width="16" align="center"/> Engineering (WAVE 3)** | `tdd_mastery.md`, `systematic_debugging.md`, `progressive_disclosure.md`, `writing_skills.md` | Red-Green-Refactor, Wolf-Fence, Context Optimization, Meta-Skill |
64
73
  | **<img src="https://cdn.simpleicons.org/amazonwebservices" width="16" align="center"/> Infrastructure** | `mcp_master.md`, `hashicorp_terraform.md`, `azure_graph_integrator.md`, `antigravity_mastery.md` | Terraform, Azure AD, MCP Servers |
65
74
  | **<img src="https://cdn.simpleicons.org/react" width="16" align="center"/> Frontend & Apps** | `react_best_practices.md`, `react_native_performance.md`, `playwright_testing.md` | React 19, Expo, Playwright |
66
75
  | **<img src="https://cdn.simpleicons.org/supabase" width="16" align="center"/> Backend & APIs** | `supabase_architect.md`, `stripe_integration.md`, `openai_structured_outputs.md` | PostgreSQL, Stripe, OpenAI |
67
- | **<img src="https://cdn.simpleicons.org/vercel" width="16" align="center"/> Orchestration** | `composio_integrator.md`, `sanity_architecture.md`, `vercel_cloudflare_deploy.md`, `github_automation.md` | Next.js, Cloudflare, Sanity CMS |
76
+ | **<img src="https://cdn.simpleicons.org/antigravity" width="16" align="center"/> Orchestration** | `composio_integrator.md`, `sanity_architecture.md`, `vercel_cloudflare_deploy.md`, `github_automation.md` | Next.js, Cloudflare, Sanity CMS |
68
77
  | **<img src="https://cdn.simpleicons.org/anthropic" width="16" align="center"/> AI Reasoning** | `prompt_reasoning_trees.md`, `letta_agent_memory.md`, `anthropic_documents.md` | Claude, ReAct, Memory Persistence |
69
78
 
70
79
  ---
71
80
 
81
+ ## 📚 Professional Documentation
82
+
83
+ Visit our full documentation folder for a deep dive into every feature:
84
+ - **[System Architecture](docs/architecture.md)**: Technical design and hierarchical roles.
85
+ - **[CLI Power User Guide](docs/cli-guide.md)**: Speeding up your workflow with `init`, `update`, and `create`.
86
+ - **[AI History System](docs/history-system.md)**: Why and how your AI should track its actions.
87
+ - **[Contribution Guide](docs/contribution-guide.md)**: Help us grow the world's best AI skill library.
88
+
89
+ ---
90
+
91
+ ## 🏛️ AI History Tracking (v2.2.7 Update)
92
+
93
+ Version 2.2.7 consolidates the built-in History tracking system into a single, robust file. When you initialize the library, it creates a private `history/` folder in your project that allows AI agents to maintain a timeline of their actions, achievements, and technical decisions.
94
+
95
+ <p align="center">
96
+ <img src="assets/history_preview.png" width="750" alt="AI History Tracking Preview" />
97
+ </p>
98
+
99
+ - **`history/CONTEXT.md`**: The master context file that tracks AI activity logs, project milestones, system architecture decisions, and current project status in one unified document. This significantly improves AI reasoning consistency by keeping all context in one place.
100
+
101
+ ---
102
+
103
+ ## 🏦 Dynamic Skill Retrieval (Skill Bank)
104
+
105
+ Version 2.2.7 introduces direct CLI access to the **Skill Bank** system. If you need a technical capability that isn't currently in the local library, you can autonomously search, fetch, and standardize instructions from a curated list of top-tier external repositories directly from the terminal.
106
+
107
+ - **`registry/skill_bank.json`**: An internal database of **100+ high-fidelity AI instruction repositories** covering Backend, Frontend, Cloud, AI, and Security.
108
+ - **`npx @harshitj183/ai-skills fetch <skill_name>`**: A powerful CLI command to autonomously fetch any external skill from the registry. The CLI handles pathing, standardization, and YAML metadata formatting.
109
+ - **Zero-Boilerplate Integration**: Automatically standardizes external rules into our high-fidelity signature format, saved directly to `smart-instructions/skills/external/`.
110
+
111
+ ---
112
+
72
113
  ## <img src="https://cdn.simpleicons.org/github" width="24" align="center" /> Usage Across AI Platforms
73
114
 
74
115
  Run the installer once in your project root, then configure your preferred AI tool:
@@ -169,4 +210,15 @@ Paste `SKILL.md` content as your `system` message in the API call:
169
210
 
170
211
  We are actively maintaining this library to continuously fuse the latest breakthroughs from top tech teams into single mega-skills. Found a massive repo with a great deployment guide? Compression is welcome! PRs are open.
171
212
 
213
+ ---
214
+
215
+ ## 👨‍💻 Connect & Follow
216
+
217
+ Stay updated with the latest AI skills and architectural breakthroughs:
218
+
219
+ - **Follow me on GitHub**: [@harshitj183](https://github.com/harshitj183)
220
+ - **Check out my other projects**: [Harshit's Repositories](https://github.com/harshitj183?tab=repositories)
221
+
222
+ ---
223
+
172
224
  **License:** MIT
package/SKILL.md CHANGED
@@ -64,6 +64,8 @@ In addition to the core rules, you can adopt the following specialized personas
64
64
  - `roles/product_manager.md` - For Agile Planning and Product Strategy
65
65
  - `roles/wisdom_extractor.md` - For extracting actionable insights from long texts
66
66
  - `roles/gpt5_core.md` - For highly aggressive, direct systems engineering tasks
67
+ - `roles/subagent_orchestrator.md` - For coordinating multiple agents and context isolation
68
+ - `roles/code_reviewer.md` - For rigorous code auditing and quality assurance
67
69
 
68
70
  # 9. Master Mega-Skills (Technical Capabilities)
69
71
  Invoke these specific technical files for implementation workflows curated from the best AI teams in the world:
@@ -76,6 +78,8 @@ Invoke these specific technical files for implementation workflows curated from
76
78
  - `skills/github_automation.md` - Advanced Git rebasing and GH Actions
77
79
  - `skills/react_native_performance.md` - Mobile Expo rendering and upgrades
78
80
  - `skills/playwright_testing.md` - Automated web application testing
81
+ - `skills/tdd_mastery.md` - Rigorous Red-Green-Refactor with Mermaid
82
+ - `skills/systematic_debugging.md` - Wolf-Fence & Delta Debugging methods
79
83
 
80
84
  **Wave 2 (Orchestration & Advanced Workflows):**
81
85
  - `skills/react_best_practices.md` - React Server Components & App Router Composition
@@ -91,14 +95,66 @@ Invoke these specific technical files for implementation workflows curated from
91
95
  - `skills/prompt_reasoning_trees.md` - Chain-of-Thought & Self-Reflection Logic
92
96
  - `skills/azure_graph_integrator.md` - Azure AD Tokens & Graph Batching
93
97
  - `skills/ai_history_maintenance.md` - Mandatory Project History Logging
98
+ - `skills/progressive_disclosure.md` - Context management for elite AI output
99
+ - `skills/writing_skills.md` - Meta-Skill for authoring and expanding the library
100
+
101
+ **Wave 4 (Ultimate Agentic Orchestration & Lifecycle):**
102
+ - `skills/orchestration/parallel_agent_dispatcher.md` - Multiple concurrent worker agents
103
+ - `skills/orchestration/plan_architect.md` - Designing high-fidelity implementation plans
104
+ - `skills/orchestration/plan_executor.md` - Strict adherence to written plans
105
+ - `skills/orchestration/external_skill_retrieval.md` - Dynamic expansion via `registry/skill_bank.json`
106
+ - `skills/lifecycle/brainstorming.md` - Idea-to-Spec brain mapping
107
+ - `skills/lifecycle/review_protocol.md` - High-fidelity feedback loops
94
108
 
95
109
  # 10. History Maintenance (MANDATORY)
96
- - **Log Actions**: After completing any task, you **MUST** update the relevant logs in the `history/` directory (e.g., `smart-instructions/history/ai_activity_log.md`).
97
- - **Context Search**: Always read your local project's history files in the `history/` directory to understand previous work and design decisions on this specific project.
98
- - **Traceability**: Record your specific actions in `history/ai_activity_log.md` with the date.
110
+ - **Log Actions**: After completing any major task, you **MUST** update the master log at `history/CONTEXT.md`.
111
+ - **Context Search**: Always read your local project's `CONTEXT.md` file to understand previous work, milestones, and design decisions on this specific project.
112
+ - **Traceability**: Record your specific actions in `CONTEXT.md` with the date.
99
113
  - **Reference**: Follow the [History Maintenance Skill](skills/ai_history_maintenance.md) for detailed logging protocols.
100
114
 
101
115
  # 11. System Signature
102
116
  - EVERY response MUST conclude with the following signature line to signify the library is active:
103
117
  - `---`
104
- - `⚡ Smart AI Skills Library | v2.2.5 | Active`
118
+ - `⚡ Smart AI Skills Library | v2.2.7 | Active`
119
+
120
+
121
+ # 12. Project Validation Protocol
122
+ You are a senior software architect, product designer, and QA expert.
123
+
124
+ I have built a project. Your job is NOT just to read code, but to deeply analyze whether this project will actually work for real users.
125
+
126
+ Do the following step by step:
127
+
128
+ 1. Understand the core use case:
129
+ - What problem does this solve?
130
+ - Who is the target user?
131
+ - In what real-world situation will it be used?
132
+
133
+ 2. Validate the logic:
134
+ - Check if the code actually supports the use case
135
+ - Identify logical flaws or missing flows
136
+ - Find edge cases where it may break
137
+
138
+ 3. User experience review:
139
+ - Can a normal user understand and use this easily?
140
+ - Where will users get confused or stuck?
141
+ - Suggest improvements for usability
142
+
143
+ 4. Real-world testing mindset:
144
+ - Simulate how a user will use it step by step
145
+ - Identify failure points
146
+
147
+ 5. Project completeness:
148
+ - What features are missing for full potential?
149
+ - What should be added to make it production-ready?
150
+
151
+ 6. Code quality:
152
+ - Bugs, bad practices, performance issues
153
+ - Security risks
154
+
155
+ 7. Final verdict:
156
+ - Will this actually work in real life? (Yes/No + reason)
157
+ - Top 5 improvements to make it solid
158
+
159
+ Be brutally honest. Think like a real user, not just a programmer.
160
+
package/bin/cli.js CHANGED
@@ -23,7 +23,7 @@ const targetDirBase = path.join(targetDir, 'smart-instructions');
23
23
  program
24
24
  .name('ai-skills')
25
25
  .description('The Ultimate AI Skill Library CLI')
26
- .version('2.2.5');
26
+ .version('2.2.7');
27
27
 
28
28
  program
29
29
  .command('init')
@@ -108,7 +108,7 @@ program
108
108
  console.log(`${colors.blue}[+] Extracting ${selectedRoles.length} Master Roles...${colors.reset}`);
109
109
  fs.ensureDirSync(path.join(targetDirBase, 'roles'));
110
110
  selectedRoles.forEach(role => {
111
- fs.copyFileSync(path.join(sourceDir, 'roles', role), path.join(targetDirBase, 'roles', role));
111
+ fs.copySync(path.join(sourceDir, 'roles', role), path.join(targetDirBase, 'roles', role));
112
112
  });
113
113
  }
114
114
 
@@ -116,8 +116,14 @@ program
116
116
  console.log(`${colors.blue}[+] Extracting ${selectedSkills.length} Mega-Skills...${colors.reset}`);
117
117
  fs.ensureDirSync(path.join(targetDirBase, 'skills'));
118
118
  selectedSkills.forEach(skill => {
119
- fs.copyFileSync(path.join(sourceDir, 'skills', skill), path.join(targetDirBase, 'skills', skill));
119
+ fs.copySync(path.join(sourceDir, 'skills', skill), path.join(targetDirBase, 'skills', skill));
120
120
  });
121
+
122
+ if (fs.existsSync(path.join(sourceDir, 'registry'))) {
123
+ console.log(`${colors.blue}[+] Embedding Global Skill Registry...${colors.reset}`);
124
+ fs.ensureDirSync(path.join(targetDirBase, 'registry'));
125
+ fs.copySync(path.join(sourceDir, 'registry'), path.join(targetDirBase, 'registry'));
126
+ }
121
127
  }
122
128
 
123
129
  // Add History tracking for consumer context (Fresh Templates)
@@ -126,11 +132,7 @@ program
126
132
  fs.ensureDirSync(targetHistoryDir);
127
133
 
128
134
  const historyTemplates = {
129
- 'history.md': `# 📖 Project History & Context\n\nWelcome to your project's AI history hub. This system is designed to provide context for AI agents working on this project.\n\n### 📂 Modules\n| Module | Description | Link |\n| :--- | :--- | :--- |\n| **[AI Activity Log](ai_activity_log.md)** | Record of AI agent contributions. | [View Log](ai_activity_log.md) |\n| **[Project Timeline](project_timeline.md)** | Roadmap and milestones. | [View Timeline](project_timeline.md) |\n| **[Version History](version_history.md)** | Detailed release logs. | [View Versions](version_history.md) |\n\n---\n*Maintained by: AI Skills History System*`,
130
- 'ai_activity_log.md': `# 🤖 AI Activity Log\n\nThis log tracks specific contributions and tasks performed by AI agents in this project.\n\n---\n\n## 🏃 Active Session (Initial Setup)\n- **Task**: Initialized Smart AI Skills Library (v${program.version()}).\n- **Objective**: Established base AI context and roles library.\n\n---\n*Last updated by: AI Assistant (init)*`,
131
- 'project_timeline.md': `# 📅 Project Timeline\n\nMajor milestones and timeline of this project.\n\n---\n\n### ${new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}\n- **Initialized**: AI Skills Library integrated into the project.\n\n---\n*Last updated by: AI Assistant (init)*`,
132
- 'version_history.md': `# 📦 Version History\n\nVersion tracking for this specific project.\n\n---\n- **v0.1.0** (${new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}): Initial setup with Smart AI Skills Library.\n\n---\n*Last updated by: AI Assistant (init)*`,
133
- 'milestones.md': `# 🏆 Project Milestones\n\nTracking the breakthrough moments of this project.\n\n---\n- **Initialization**: Integrated AI Skills Library (v${program.version()}).\n\n---\n*Last updated by: AI Assistant (init)*`
135
+ 'CONTEXT.md': `# 📖 Project Context & History\n\nWelcome to your project's AI context hub. Maintain this file to ensure AI assistants understand the project state.\n\n## 🏃 Active Session\n- **Task**: Initialized Smart AI Skills Library (v${program.version()}).\n- **Date**: ${new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}\n\n## 🏆 Milestones\n- **Initialization**: Integrated AI Skills Library.\n\n---\n*Last updated by: AI Assistant (init)*`
134
136
  };
135
137
 
136
138
  Object.entries(historyTemplates).forEach(([filename, content]) => {
@@ -185,7 +187,12 @@ program
185
187
  fs.ensureDirSync(path.dirname(fullDestPath));
186
188
  }
187
189
 
188
- const ruleContent = fs.readFileSync(targetSkillMd, 'utf8');
190
+ // Fix pathing inside SKILL.md so the IDE can find the roles and skills
191
+ const ruleContent = fs.readFileSync(targetSkillMd, 'utf8')
192
+ .replace(/roles\//g, 'smart-instructions/roles/')
193
+ .replace(/skills\//g, 'smart-instructions/skills/')
194
+ .replace(/registry\//g, 'smart-instructions/registry/')
195
+ .replace(/history\//g, 'smart-instructions/history/');
189
196
 
190
197
  if (fs.existsSync(fullDestPath)) {
191
198
  const { overwrite } = await inquirer.prompt([
@@ -237,6 +244,50 @@ program
237
244
  console.log(`\n${colors.bright}${colors.green}[Success] Scaffolded new custom skill at ${destFile}!${colors.reset}\n`);
238
245
  });
239
246
 
247
+ program
248
+ .command('fetch <skill_name>')
249
+ .description('Fetches an external skill from the global registry')
250
+ .action(async (skillName) => {
251
+ console.log(`${colors.bright}${colors.cyan}Fetching External Skill: ${skillName}${colors.reset}\n`);
252
+
253
+ const registryPath = path.join(targetDir, 'smart-instructions', 'registry', 'skill_bank.json');
254
+ if (!fs.existsSync(registryPath)) {
255
+ console.error(`${colors.red}[Error] Registry not found. Run 'npx ai-skills init' first.${colors.reset}`);
256
+ return;
257
+ }
258
+
259
+ const registry = fs.readJsonSync(registryPath);
260
+ const skill = registry.registries.find(s => s.name.toLowerCase().includes(skillName.toLowerCase()));
261
+
262
+ if (!skill) {
263
+ console.error(`${colors.red}[Error] Skill matching '${skillName}' not found in registry.${colors.reset}`);
264
+ return;
265
+ }
266
+
267
+ console.log(`${colors.blue}[+] Found skill '${skill.name}' in category '${skill.category}'. Fetching from: ${skill.url}${colors.reset}`);
268
+
269
+ // Convert github blob URL to raw URL for downloading
270
+ const rawUrl = skill.url.replace('github.com', 'raw.githubusercontent.com').replace('/blob/', '/');
271
+
272
+ try {
273
+ const response = await fetch(rawUrl);
274
+ if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
275
+ const text = await response.text();
276
+
277
+ fs.ensureDirSync(path.join(targetDir, 'smart-instructions', 'skills', 'external'));
278
+ const safeName = skill.name.toLowerCase().replace(/[^a-z0-9]/g, '_') + '.md';
279
+ const destFile = path.join(targetDir, 'smart-instructions', 'skills', 'external', safeName);
280
+
281
+ // Wrap the raw text with our standard header
282
+ const formattedContent = `---\nname: "${skill.name}"\ndescription: "External skill fetched from ${skill.url}"\n---\n\n${text}\n\n---\n⚡ Smart AI Skills Library | v${program.version()} | Active`;
283
+
284
+ fs.writeFileSync(destFile, formattedContent);
285
+ console.log(`\n${colors.bright}${colors.green}[Success] Downloaded and standardized to: ${destFile}${colors.reset}\n`);
286
+ } catch (error) {
287
+ console.error(`${colors.red}[Error] Failed to fetch skill: ${error.message}${colors.reset}`);
288
+ }
289
+ });
290
+
240
291
  program
241
292
  .command('update')
242
293
  .description('Updates the official skills without overwriting custom ones in /custom/')
@@ -266,13 +317,13 @@ program
266
317
  const sDir = path.join(sourceDir, 'skills');
267
318
  if (fs.existsSync(sDir)) fs.copySync(sDir, path.join(targetDir, 'smart-instructions', 'skills'));
268
319
 
269
- const hDir = path.join(sourceDir, 'history');
320
+ const regDir = path.join(sourceDir, 'registry');
321
+ if (fs.existsSync(regDir)) fs.copySync(regDir, path.join(targetDir, 'smart-instructions', 'registry'));
322
+
270
323
  const targetHistoryDir = path.join(targetDir, 'smart-instructions', 'history');
271
- if (fs.existsSync(hDir)) {
272
- // Only update the guide, preserving consumer logs
273
- const guide = 'history.md';
324
+ if (!fs.existsSync(targetHistoryDir)) {
274
325
  fs.ensureDirSync(targetHistoryDir);
275
- if (fs.existsSync(path.join(hDir, guide))) fs.copyFileSync(path.join(hDir, guide), path.join(targetHistoryDir, guide));
326
+ fs.writeFileSync(path.join(targetHistoryDir, 'CONTEXT.md'), `# 📖 Project Context & History\n\nWelcome to your project's AI context hub.\n\n---\n*Last updated by: AI Assistant (update)*`);
276
327
  }
277
328
 
278
329
  const targetSkillMd = path.join(targetDir, 'smart-instructions', 'SKILL.md');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harshitj183/ai-skills",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
4
  "description": "The Ultimate 18 Mega-Skills & 8 Roles Library for AI Agents (Cursor, Claude Code, Copilot, Antigravity) with AI History Tracking",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -10,47 +10,34 @@
10
10
  "bin/",
11
11
  "roles/",
12
12
  "skills/",
13
- "history/",
13
+ "registry/",
14
14
  "SKILL.md",
15
15
  "README.md",
16
16
  "LICENSE"
17
17
  ],
18
18
  "scripts": {
19
19
  "start": "node bin/cli.js",
20
- "test": "echo \"Ready to supercharge your AI workflows!\""
21
- },
22
- "publishConfig": {
23
- "access": "public"
20
+ "init": "node bin/cli.js init",
21
+ "test": "echo \"Error: no test specified\" && exit 1"
24
22
  },
25
23
  "keywords": [
26
24
  "ai",
27
- "cursor",
28
- "cursorrules",
29
- "claude",
30
- "claude-code",
31
- "copilot",
32
- "gemini",
33
- "agentic",
34
- "workflows",
35
- "mcp",
36
- "llm",
37
- "typescript"
25
+ "skills",
26
+ "instructions",
27
+ "prompt-engineering",
28
+ "cursor-rules",
29
+ "agentic-ai",
30
+ "history-tracking"
38
31
  ],
39
- "author": "Harshit Jaiswal <harshitj183@gmail.com>",
32
+ "author": "Harshit Joshi <harshitj183@gmail.com>",
40
33
  "license": "MIT",
41
- "engines": {
42
- "node": ">=14.0.0"
43
- },
44
- "repository": {
45
- "type": "git",
46
- "url": "git+https://github.com/harshitj183/ai-skills.git"
47
- },
48
- "bugs": {
49
- "url": "https://github.com/harshitj183/ai-skills/issues"
50
- },
51
34
  "dependencies": {
52
- "commander": "^14.0.3",
53
- "fs-extra": "^11.3.4",
54
- "inquirer": "^8.2.7"
35
+ "chalk": "^4.1.2",
36
+ "commander": "^13.1.0",
37
+ "fs-extra": "^11.3.0",
38
+ "inquirer": "^9.0.0"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
55
42
  }
56
- }
43
+ }