@harshitj183/ai-skills 2.2.3 → 2.2.5
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/SKILL.md +9 -2
- package/bin/cli.js +27 -1
- package/package.json +4 -3
- package/skills/ai_history_maintenance.md +36 -0
package/SKILL.md
CHANGED
|
@@ -90,8 +90,15 @@ Invoke these specific technical files for implementation workflows curated from
|
|
|
90
90
|
- `skills/openai_structured_outputs.md` - Strict JSON Schema Function Calling
|
|
91
91
|
- `skills/prompt_reasoning_trees.md` - Chain-of-Thought & Self-Reflection Logic
|
|
92
92
|
- `skills/azure_graph_integrator.md` - Azure AD Tokens & Graph Batching
|
|
93
|
+
- `skills/ai_history_maintenance.md` - Mandatory Project History Logging
|
|
93
94
|
|
|
94
|
-
# 10.
|
|
95
|
+
# 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.
|
|
99
|
+
- **Reference**: Follow the [History Maintenance Skill](skills/ai_history_maintenance.md) for detailed logging protocols.
|
|
100
|
+
|
|
101
|
+
# 11. System Signature
|
|
95
102
|
- EVERY response MUST conclude with the following signature line to signify the library is active:
|
|
96
103
|
- `---`
|
|
97
|
-
- `⚡ Smart AI Skills Library | v2.2.
|
|
104
|
+
- `⚡ Smart AI Skills Library | v2.2.5 | Active`
|
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.
|
|
26
|
+
.version('2.2.5');
|
|
27
27
|
|
|
28
28
|
program
|
|
29
29
|
.command('init')
|
|
@@ -120,6 +120,23 @@ program
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
// Add History tracking for consumer context (Fresh Templates)
|
|
124
|
+
console.log(`${colors.blue}[+] Initializing History tracking logs (Fresh Templates)...${colors.reset}`);
|
|
125
|
+
const targetHistoryDir = path.join(targetDirBase, 'history');
|
|
126
|
+
fs.ensureDirSync(targetHistoryDir);
|
|
127
|
+
|
|
128
|
+
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)*`
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
Object.entries(historyTemplates).forEach(([filename, content]) => {
|
|
137
|
+
fs.writeFileSync(path.join(targetHistoryDir, filename), content);
|
|
138
|
+
});
|
|
139
|
+
|
|
123
140
|
console.log(`\n${colors.bright}${colors.green}[Success] The 'smart-instructions' folder has been added to your project!${colors.reset}`);
|
|
124
141
|
console.log(`${colors.yellow}Tip: Let your AI Agent pick skills natively, or run 'npx ai-skills configure' to setup your IDE!${colors.reset}\n`);
|
|
125
142
|
});
|
|
@@ -249,6 +266,15 @@ program
|
|
|
249
266
|
const sDir = path.join(sourceDir, 'skills');
|
|
250
267
|
if (fs.existsSync(sDir)) fs.copySync(sDir, path.join(targetDir, 'smart-instructions', 'skills'));
|
|
251
268
|
|
|
269
|
+
const hDir = path.join(sourceDir, 'history');
|
|
270
|
+
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';
|
|
274
|
+
fs.ensureDirSync(targetHistoryDir);
|
|
275
|
+
if (fs.existsSync(path.join(hDir, guide))) fs.copyFileSync(path.join(hDir, guide), path.join(targetHistoryDir, guide));
|
|
276
|
+
}
|
|
277
|
+
|
|
252
278
|
const targetSkillMd = path.join(targetDir, 'smart-instructions', 'SKILL.md');
|
|
253
279
|
if (fs.existsSync(path.join(sourceDir, 'SKILL.md'))) {
|
|
254
280
|
fs.copyFileSync(path.join(sourceDir, 'SKILL.md'), targetSkillMd);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harshitj183/ai-skills",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "The Ultimate
|
|
3
|
+
"version": "2.2.5",
|
|
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": {
|
|
7
7
|
"ai-skills": "bin/cli.js"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"bin/",
|
|
11
11
|
"roles/",
|
|
12
12
|
"skills/",
|
|
13
|
+
"history/",
|
|
13
14
|
"SKILL.md",
|
|
14
15
|
"README.md",
|
|
15
16
|
"LICENSE"
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
},
|
|
43
44
|
"repository": {
|
|
44
45
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/harshitj183/ai-skills.git"
|
|
46
|
+
"url": "git+https://github.com/harshitj183/ai-skills.git"
|
|
46
47
|
},
|
|
47
48
|
"bugs": {
|
|
48
49
|
"url": "https://github.com/harshitj183/ai-skills/issues"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# 🤖 AI History Maintenance Skill
|
|
2
|
+
|
|
3
|
+
This skill provides mandatory instructions for AI agents working on the `@harshitj183/ai-skills` project to maintain project history and transparency.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🧐 Skill Summary
|
|
8
|
+
Empowers AI agents to systematically document their actions, changes, and milestones within the project's dedicated `history/` system.
|
|
9
|
+
|
|
10
|
+
## 🛠️ Implementation Guide
|
|
11
|
+
|
|
12
|
+
### 1. Mandatory Updates
|
|
13
|
+
After completing any major task (e.g., adding a new skill, fixing a bug, updating configurations), you **MUST** update the following files:
|
|
14
|
+
- **`history/ai_activity_log.md`**: Add your AI name, date, and a bulleted list of tasks performed.
|
|
15
|
+
- **`history/project_timeline.md`**: Add major date-stamped events if applicable.
|
|
16
|
+
- **`history/version_history.md`**: If the task warrants a version bump, record the new version and its features.
|
|
17
|
+
- **`history/milestones.md`**: If the task is a major breakthrough, add it to the milestones.
|
|
18
|
+
|
|
19
|
+
### 2. Format and Tone
|
|
20
|
+
- Use professional, clear markdown.
|
|
21
|
+
- Maintain a structured, reverse-chronological order (newest on top).
|
|
22
|
+
- Include dates in `YYYY-MM-DD` or `Month DD, YYYY` format.
|
|
23
|
+
- Always sign the update with `*Last updated by: AI Assistant (<Name>)*`.
|
|
24
|
+
|
|
25
|
+
### 3. Verification
|
|
26
|
+
Before concluding any session, verify that:
|
|
27
|
+
- The `history/` directory contains accurate and recent records of your work.
|
|
28
|
+
- The `history/status_summary.md` links are still valid.
|
|
29
|
+
|
|
30
|
+
## 🌟 Best Practices
|
|
31
|
+
- **Proactive Documentation**: If you see a gap in history, fill it immediately.
|
|
32
|
+
- **Continuous Logging**: Update logs incrementally during long-running tasks.
|
|
33
|
+
- **Context Awareness**: Use previous logs to understand why certain decisions were made.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
*Signed: AI History Architect*
|