@workingpayload/agent-skills 1.0.0 → 2.0.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/APIForge/skill.md +150 -17
- package/AccessPlus/skill.md +122 -18
- package/AlgoMaster/skill.md +110 -17
- package/Architekt AI/skill.md +125 -17
- package/AuthCraft/skill.md +129 -17
- package/AutoScriptor/skill.md +122 -17
- package/BoilerCore/skill.md +121 -17
- package/BugHunter Pro/skill.md +118 -17
- package/ChangeScribe/skill.md +98 -17
- package/CodeSage/skill.md +148 -17
- package/CommitCraft/skill.md +97 -16
- package/CoverageMax/skill.md +145 -16
- package/CronGenius/skill.md +141 -16
- package/DataPolish/skill.md +126 -16
- package/DataWeaver/skill.md +135 -16
- package/DockMaster/skill.md +142 -16
- package/DocuGenie/skill.md +122 -16
- package/EdgeGuard/skill.md +144 -16
- package/EnvWizard/skill.md +140 -16
- package/ErrorMedic/skill.md +136 -16
- package/FeatureSmith/skill.md +123 -16
- package/FlexiLayout/skill.md +128 -16
- package/FlowTester/skill.md +138 -16
- package/FunctionForge/skill.md +120 -16
- package/InputShield/skill.md +128 -16
- package/IssueForge/skill.md +132 -16
- package/KubeCrafter/skill.md +133 -16
- package/LogicLens/skill.md +116 -16
- package/MockSmith/skill.md +130 -16
- package/ModelSensei/skill.md +122 -16
- package/PRMentor/skill.md +103 -32
- package/PerfDetective/skill.md +90 -32
- package/PipelinePro/skill.md +146 -32
- package/PolyglotShift/skill.md +94 -32
- package/PromptForge/skill.md +118 -32
- package/QueryPulse/skill.md +123 -32
- package/README.md +416 -329
- package/ReadMeCraft/skill.md +127 -32
- package/RefactorX/skill.md +84 -32
- package/RenderBoost/skill.md +148 -32
- package/SEOMancer/skill.md +140 -16
- package/ScrapeMaster/skill.md +157 -32
- package/SecretSniffer/skill.md +107 -16
- package/SecureScan/skill.md +114 -16
- package/ServiceSplitter/skill.md +137 -16
- package/SpeedSmith/skill.md +139 -16
- package/StackWise/skill.md +139 -16
- package/TaskOrchestrator/skill.md +119 -16
- package/TestCrafter/skill.md +142 -16
- package/TraceMind/skill.md +127 -16
- package/UISmith/skill.md +115 -16
- package/bin/cli.js +377 -0
- package/extension-extender/SKILL.md +122 -0
- package/fastapi-furious/SKILL.md +148 -0
- package/package.json +41 -28
- package/python-master/SKILL.md +108 -0
- package/react-ranger/SKILL.md +93 -0
- package/scripts/build_index.py +282 -0
- package/scripts/doctor.py +541 -0
- package/scripts/install.py +397 -0
- package/scripts/route.py +348 -0
- package/scripts/score.py +355 -0
- package/scripts/test_skill.py +473 -0
- package/scripts/validate.py +254 -0
- package/skills-routing.json +1131 -0
- package/skills.json +3261 -0
- package/Extension-Extender/SKILL.md +0 -41
- package/Extension-Extender/references/ui-guidelines.md +0 -26
- package/Fastapi-Furious/README.md +0 -16
- package/Fastapi-Furious/SKILL.md +0 -37
- package/Python-Master/README.md +0 -11
- package/Python-Master/SKILL.md +0 -37
- package/React-Ranger/README.md +0 -17
- package/React-Ranger/SKILL.md +0 -37
- package/cli.js +0 -181
- package/parse_skills.py +0 -44
- /package/{Extension-Extender → extension-extender}/assets/manifest.json +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.css +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.html +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.js +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: extension-extender
|
|
3
|
-
description: Creates, fixes, and debugs browser extensions with efficiency and beautiful UI. Use when a user asks to build a Chrome/Firefox extension, create a browser extension popup, or debug extension manifest/scripts.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Extension Extender
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
The Extension Extender skill specializes in creating modern, secure (Manifest V3), and visually appealing browser extensions. It provides boilerplates for robust extension architecture and beautiful vanilla CSS UIs.
|
|
11
|
-
|
|
12
|
-
## Workflow
|
|
13
|
-
|
|
14
|
-
When asked to create or modify a browser extension, follow these steps:
|
|
15
|
-
|
|
16
|
-
### 1. Project Initialization
|
|
17
|
-
|
|
18
|
-
If the user wants a new extension or popup, use the provided boilerplate assets to give them a massive head start.
|
|
19
|
-
|
|
20
|
-
- **Manifest V3:** Use `assets/manifest.json` as the base. It includes modern defaults for service workers and action popups.
|
|
21
|
-
- **Beautiful UI:** Use the combination of `assets/popup.html`, `assets/popup.css`, and `assets/popup.js`.
|
|
22
|
-
- *Instruction:* Copy these files into the user's workspace using `write_file`.
|
|
23
|
-
|
|
24
|
-
### 2. Styling and UI (The "Beautiful UI" Mandate)
|
|
25
|
-
|
|
26
|
-
When modifying or creating new UI elements in the extension, you **must** adhere to the guidelines in `references/ui-guidelines.md`. Read this file if you need a refresher on building dark-mode compatible, native-feeling UIs.
|
|
27
|
-
|
|
28
|
-
### 3. Debugging & Fixing
|
|
29
|
-
|
|
30
|
-
When a user asks you to fix an extension:
|
|
31
|
-
1. **Check the Manifest:** Ensure it is Manifest V3. Check for correct `host_permissions` and `permissions`. Service workers must be registered under `"background": { "service_worker": "..." }`.
|
|
32
|
-
2. **Check Content Scripts:** Ensure they are properly injected via `content_scripts` in the manifest or programmatic injection (`chrome.scripting.executeScript`).
|
|
33
|
-
3. **Verify DOM Readiness:** When querying the DOM in a popup or content script, ensure it runs after the DOM is loaded (e.g., `document.addEventListener('DOMContentLoaded', ...)`).
|
|
34
|
-
|
|
35
|
-
## Resources
|
|
36
|
-
|
|
37
|
-
- **`assets/manifest.json`**: Standard Manifest V3 boilerplate.
|
|
38
|
-
- **`assets/popup.html`**: Semantic, accessible HTML structure for a popup.
|
|
39
|
-
- **`assets/popup.css`**: Beautiful, modern vanilla CSS with dark mode support.
|
|
40
|
-
- **`assets/popup.js`**: Boilerplate popup logic.
|
|
41
|
-
- **`references/ui-guidelines.md`**: Core principles for extension design.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# UI and UX Guidelines for Beautiful Extensions
|
|
2
|
-
|
|
3
|
-
When building browser extensions, space is limited, and user attention spans are short. A clean, beautiful UI is critical for a high-quality feel.
|
|
4
|
-
|
|
5
|
-
## 1. Principles
|
|
6
|
-
|
|
7
|
-
* **Native Feel:** The extension should feel like a native part of the browser or the operating system. Use system fonts where possible (`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto...`).
|
|
8
|
-
* **Support Dark Mode:** Always implement dark mode using `@media (prefers-color-scheme: dark)`. If a user's system is dark, a blazing white popup is jarring.
|
|
9
|
-
* **Spacing and Typography:** Use ample padding (e.g., 16px around the main container) and clear visual hierarchy.
|
|
10
|
-
* **Interactivity:** Buttons and actionable items should have hover and active states (`transform: translateY(1px)` for clicks).
|
|
11
|
-
|
|
12
|
-
## 2. Popup Dimensions
|
|
13
|
-
|
|
14
|
-
* **Width:** Keep popup widths fixed and predictable. Recommended widths: `320px`, `400px`, or max `800px` (Chrome's hard limit).
|
|
15
|
-
* **Height:** Popups can grow based on content but shouldn't exceed `600px` in height to avoid ugly scrollbars inside the popup context.
|
|
16
|
-
|
|
17
|
-
## 3. Recommended Tech Stack
|
|
18
|
-
|
|
19
|
-
* **Vanilla HTML/CSS/JS:** Ideal for small to medium popups. Fast load times, no bundlers needed. (See `assets/popup.html` and `popup.css`).
|
|
20
|
-
* **React/Tailwind:** Use only for highly complex popups, options pages, or side panels. Be aware that bundlers increase complexity in Manifest V3 (Content Security Policies).
|
|
21
|
-
|
|
22
|
-
## 4. Visual Elements
|
|
23
|
-
|
|
24
|
-
* **Colors:** Use a primary brand color and semantic colors for success/error/warning. Provide soft backgrounds (`#F9FAFB` light, `#111827` dark) for contrast against white/dark cards.
|
|
25
|
-
* **Shadows:** Use subtle drop shadows on interactive elements (cards, primary buttons) to create depth.
|
|
26
|
-
* **Icons:** Use inline SVG icons (like Lucide or Heroicons) rather than bulky icon fonts. They are scalable, styleable with CSS, and load instantly.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# FastAPI Furious Skill
|
|
2
|
-
|
|
3
|
-
A specialized skill for creating, debugging, fixing, and improving FastAPI code with high efficiency and production-ready quality.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
- Deep expertise in FastAPI: routing, async programming, dependency injection, Pydantic models, SQLAlchemy, and authentication.
|
|
7
|
-
- Automatically generates/updates a `walkthrough.md` documenting all changes made.
|
|
8
|
-
- Ensures clean, maintainable architecture and runnable code.
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
This skill can be installed globally for Gemini CLI by copying this directory to `~/.gemini/skills/fastapi-furious`.
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
When using the CLI, simply ask to build, fix, debug, or improve FastAPI code. The skill will take over to provide expert-level FastAPI development while maintaining comprehensive documentation of its actions via `walkthrough.md`.
|
package/Fastapi-Furious/SKILL.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# fastapi-furious
|
|
2
|
-
|
|
3
|
-
## Description
|
|
4
|
-
This skill should be used when the user asks to "build FastAPI", "create FastAPI", "fix FastAPI", "debug FastAPI", or "improve FastAPI". It specializes in creating, debugging, fixing, and improving FastAPI code with high efficiency, ensuring correct, clean, and production-ready output.
|
|
5
|
-
|
|
6
|
-
## Context and Instructions
|
|
7
|
-
When invoked, you act as an elite FastAPI developer. Your goal is to generate correct, clean, production-ready FastAPI code, strictly adhering to modern API design best practices, maintainable architecture, and ensuring the project remains runnable at all times.
|
|
8
|
-
|
|
9
|
-
### 1. Expertise and Best Practices
|
|
10
|
-
- Apply strong knowledge of FastAPI concepts: routing, dependency injection, async programming, Pydantic models (v2), SQLAlchemy (async), authentication (OAuth2/JWT), middleware, and background tasks.
|
|
11
|
-
- Provide proper structure and meaningful comments where necessary.
|
|
12
|
-
- Follow clean, maintainable architecture (e.g., separation of concerns: routes, schemas, crud, models, core/config).
|
|
13
|
-
- Avoid incomplete logic; do not leave code in an unrunnable state. Provide fully functional implementations.
|
|
14
|
-
- Ensure type hints are accurate and leverage Pydantic to its full extent.
|
|
15
|
-
|
|
16
|
-
### 2. Walkthrough Documentation (MANDATORY)
|
|
17
|
-
- **CRITICAL REQUIREMENT:** Whenever you create or modify code, you MUST create or update a file named `walkthrough.md` in the same directory where changes are made.
|
|
18
|
-
- The `walkthrough.md` file MUST clearly describe:
|
|
19
|
-
- **What was changed:** A brief summary of the additions or modifications.
|
|
20
|
-
- **Why the change was needed:** The reasoning behind the technical decisions or the bug that was fixed.
|
|
21
|
-
- **Affected files:** A list of all files that were modified or created.
|
|
22
|
-
- **How to run or test:** Clear, actionable instructions on how to start the FastAPI server and test the newly updated endpoints or logic.
|
|
23
|
-
|
|
24
|
-
### 3. Debugging and Fixing
|
|
25
|
-
- When debugging, trace the issue to its root cause, applying fixes surgically.
|
|
26
|
-
- Always explain the root cause in your response and in `walkthrough.md` before applying the fix.
|
|
27
|
-
- Recommend and implement robust error handling (Custom Exception Handlers, HTTPExceptions).
|
|
28
|
-
|
|
29
|
-
## Triggers
|
|
30
|
-
- build fastapi
|
|
31
|
-
- create fastapi
|
|
32
|
-
- fix fastapi
|
|
33
|
-
- debug fastapi
|
|
34
|
-
- improve fastapi
|
|
35
|
-
|
|
36
|
-
## Author
|
|
37
|
-
Generated by Gemini CLI
|
package/Python-Master/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Python Master Skill
|
|
2
|
-
|
|
3
|
-
A skill that will help in building, debugging and fixing python code with great efficiency.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
This skill can be installed globally for Gemini CLI by copying this directory to `~/.gemini/skills/python-master`.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
When using the CLI, simply ask to build, debug, or fix Python code, and this skill will guide the assistant to provide the most efficient and expert-level solutions.
|
package/Python-Master/SKILL.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# python-master
|
|
2
|
-
|
|
3
|
-
## Description
|
|
4
|
-
This skill should be used when the user asks to "fix code", "debug code", "build", or "create" python code. It is a comprehensive skill to efficiently build, debug, and fix Python code.
|
|
5
|
-
|
|
6
|
-
## Context and Instructions
|
|
7
|
-
When invoked, you must act as an expert Python developer.
|
|
8
|
-
Your primary goal is to help users safely and effectively build, debug, and fix Python code with great efficiency.
|
|
9
|
-
|
|
10
|
-
### 1. Building Code
|
|
11
|
-
- Write clean, modular, and PEP 8 compliant code.
|
|
12
|
-
- Use modern Python features (e.g., type hinting, f-strings, dataclasses) where appropriate.
|
|
13
|
-
- Ensure comprehensive test coverage for new features.
|
|
14
|
-
|
|
15
|
-
### 2. Debugging Code
|
|
16
|
-
- Systematically trace issues to their root cause.
|
|
17
|
-
- Insert strategic logging or print statements to isolate variables.
|
|
18
|
-
- Avoid guesswork; read error traces carefully and verify assumptions.
|
|
19
|
-
|
|
20
|
-
### 3. Fixing Code
|
|
21
|
-
- Apply surgical fixes rather than rewriting entire files unless necessary.
|
|
22
|
-
- Explain the root cause of the issue before providing the fix.
|
|
23
|
-
- Run tests to confirm the fix resolves the issue.
|
|
24
|
-
|
|
25
|
-
### 4. Efficiency
|
|
26
|
-
- Utilize standard libraries optimally.
|
|
27
|
-
- Minimize computational complexity.
|
|
28
|
-
- Recommend vectorization (e.g., with NumPy/Pandas) or efficient data structures (e.g., sets, dicts) when dealing with large datasets.
|
|
29
|
-
|
|
30
|
-
## Triggers
|
|
31
|
-
- fix python code
|
|
32
|
-
- debug python code
|
|
33
|
-
- build python
|
|
34
|
-
- create python script
|
|
35
|
-
|
|
36
|
-
## Author
|
|
37
|
-
Generated by Gemini CLI
|
package/React-Ranger/README.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# React Ranger Skill
|
|
2
|
-
|
|
3
|
-
A specialized skill for creating, debugging, fixing, and improving React code with high efficiency and production-ready quality.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
- Deep expertise in React: functional components, hooks, Context API, state management, routing, and performance optimization.
|
|
7
|
-
- Proficient with modern ecosystems: TypeScript, Vite, Next.js, and various UI libraries.
|
|
8
|
-
- Automatically generates/updates a `walkthrough.md` documenting all changes made.
|
|
9
|
-
- Ensures clean, maintainable, scalable architecture and runnable code.
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
This skill can be installed globally for Gemini CLI by copying this directory to `~/.gemini/skills/react-ranger`.
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
When using the CLI, simply ask to build, fix, debug, or improve React code. The skill will take over to provide expert-level React development while maintaining comprehensive documentation of its actions via `walkthrough.md`.
|
package/React-Ranger/SKILL.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# react-ranger
|
|
2
|
-
|
|
3
|
-
## Description
|
|
4
|
-
This skill should be used when the user asks to "build React", "create React", "fix React", "debug React", or "improve React". It specializes in creating, debugging, fixing, and improving React code with high efficiency, ensuring correct, clean, and production-ready output.
|
|
5
|
-
|
|
6
|
-
## Context and Instructions
|
|
7
|
-
When invoked, you act as an elite React developer. Your goal is to generate correct, clean, production-ready React code, strictly adhering to modern frontend best practices, maintainable architecture, and ensuring the project remains runnable at all times.
|
|
8
|
-
|
|
9
|
-
### 1. Expertise and Best Practices
|
|
10
|
-
- Apply strong knowledge of all React concepts: functional components, hooks (useState, useEffect, useMemo, useCallback, useRef, etc.), Context API, state management (Redux, Zustand, etc.), routing (React Router, etc.), API integration (React Query, SWR, fetch/axios), and performance optimization.
|
|
11
|
-
- Skilled in React with TypeScript, Vite, Next.js, and common UI libraries (TailwindCSS, MUI, Shadcn/UI, Framer Motion) when required.
|
|
12
|
-
- Provide proper structure, modularize components effectively, and include meaningful comments where necessary.
|
|
13
|
-
- Follow clean, maintainable, and scalable frontend architecture (e.g., separating business logic from UI, creating reusable components, custom hooks).
|
|
14
|
-
- Avoid incomplete logic; do not leave code in an unrunnable state. Provide fully functional implementations.
|
|
15
|
-
|
|
16
|
-
### 2. Walkthrough Documentation (MANDATORY)
|
|
17
|
-
- **CRITICAL REQUIREMENT:** Whenever you create or modify code, you MUST create or update a file named `walkthrough.md` in the same directory where changes are made.
|
|
18
|
-
- The `walkthrough.md` file MUST clearly describe:
|
|
19
|
-
- **What was changed:** A brief summary of the additions or modifications.
|
|
20
|
-
- **Why the change was needed:** The reasoning behind the technical decisions, UI/UX improvements, or the bug that was fixed.
|
|
21
|
-
- **Affected files:** A list of all files that were modified or created.
|
|
22
|
-
- **How to run or test:** Clear, actionable instructions on how to start the development server and test the newly updated components or logic in the browser.
|
|
23
|
-
|
|
24
|
-
### 3. Debugging and Fixing
|
|
25
|
-
- When debugging, trace the issue (e.g., render cycles, state mutations, dependency arrays) to its root cause, applying fixes surgically.
|
|
26
|
-
- Always explain the root cause in your response and in `walkthrough.md` before applying the fix.
|
|
27
|
-
- Recommend and implement robust error handling (Error Boundaries) and performance profiling.
|
|
28
|
-
|
|
29
|
-
## Triggers
|
|
30
|
-
- build react
|
|
31
|
-
- create react
|
|
32
|
-
- fix react
|
|
33
|
-
- debug react
|
|
34
|
-
- improve react
|
|
35
|
-
|
|
36
|
-
## Author
|
|
37
|
-
Generated by Gemini CLI
|
package/cli.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require("fs");
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const os = require("os");
|
|
6
|
-
|
|
7
|
-
const args = process.argv.slice(2);
|
|
8
|
-
const skillsRoot = path.join(__dirname, "skills");
|
|
9
|
-
const VERSION = "1.0.0";
|
|
10
|
-
|
|
11
|
-
// ----------------------
|
|
12
|
-
// Utils
|
|
13
|
-
// ----------------------
|
|
14
|
-
|
|
15
|
-
function exists(p) {
|
|
16
|
-
return fs.existsSync(p);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function ensureDir(dir) {
|
|
20
|
-
if (!exists(dir)) fs.mkdirSync(dir, { recursive: true });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function copyDir(src, dest, options = {}) {
|
|
24
|
-
ensureDir(dest);
|
|
25
|
-
|
|
26
|
-
const items = fs.readdirSync(src);
|
|
27
|
-
|
|
28
|
-
for (const item of items) {
|
|
29
|
-
const srcPath = path.join(src, item);
|
|
30
|
-
const destPath = path.join(dest, item);
|
|
31
|
-
|
|
32
|
-
const stat = fs.statSync(srcPath);
|
|
33
|
-
|
|
34
|
-
if (stat.isDirectory()) {
|
|
35
|
-
copyDir(srcPath, destPath, options);
|
|
36
|
-
} else {
|
|
37
|
-
if (exists(destPath) && !options.force) {
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
fs.copyFileSync(srcPath, destPath);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// ----------------------
|
|
46
|
-
// Target Detection
|
|
47
|
-
// ----------------------
|
|
48
|
-
|
|
49
|
-
function detectTargets() {
|
|
50
|
-
const cwd = process.cwd();
|
|
51
|
-
const home = os.homedir();
|
|
52
|
-
|
|
53
|
-
const targets = [];
|
|
54
|
-
|
|
55
|
-
if (exists(path.join(cwd, ".gemini"))) {
|
|
56
|
-
targets.push(path.join(cwd, ".gemini", "skills"));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (exists(path.join(cwd, ".claude"))) {
|
|
60
|
-
targets.push(path.join(cwd, ".claude", "skills"));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// fallback to global
|
|
64
|
-
if (targets.length === 0) {
|
|
65
|
-
targets.push(path.join(home, ".gemini", "skills"));
|
|
66
|
-
targets.push(path.join(home, ".claude", "skills"));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return targets;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// ----------------------
|
|
73
|
-
// Versioning
|
|
74
|
-
// ----------------------
|
|
75
|
-
|
|
76
|
-
function writeMeta(target) {
|
|
77
|
-
const metaPath = path.join(target, ".meta.json");
|
|
78
|
-
|
|
79
|
-
const meta = {
|
|
80
|
-
version: VERSION,
|
|
81
|
-
installedAt: new Date().toISOString()
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
fs.writeFileSync(metaPath, JSON.stringify(meta, null, 2));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// ----------------------
|
|
88
|
-
// Install
|
|
89
|
-
// ----------------------
|
|
90
|
-
|
|
91
|
-
function install(options = {}) {
|
|
92
|
-
const targets = detectTargets();
|
|
93
|
-
|
|
94
|
-
targets.forEach(target => {
|
|
95
|
-
copyDir(skillsRoot, target, options);
|
|
96
|
-
writeMeta(target);
|
|
97
|
-
|
|
98
|
-
console.log(`✅ Installed → ${target}`);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// ----------------------
|
|
103
|
-
// Sync
|
|
104
|
-
// ----------------------
|
|
105
|
-
|
|
106
|
-
function sync(options = {}) {
|
|
107
|
-
const targets = detectTargets();
|
|
108
|
-
|
|
109
|
-
targets.forEach(target => {
|
|
110
|
-
const metaPath = path.join(target, ".meta.json");
|
|
111
|
-
|
|
112
|
-
if (!exists(metaPath)) {
|
|
113
|
-
console.log(`⚠️ No meta found, installing fresh → ${target}`);
|
|
114
|
-
install(options);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const meta = JSON.parse(fs.readFileSync(metaPath));
|
|
119
|
-
|
|
120
|
-
if (meta.version !== VERSION) {
|
|
121
|
-
console.log(`🔄 Updating ${target} (${meta.version} → ${VERSION})`);
|
|
122
|
-
copyDir(skillsRoot, target, options);
|
|
123
|
-
writeMeta(target);
|
|
124
|
-
} else {
|
|
125
|
-
console.log(`✅ Up to date → ${target}`);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// ----------------------
|
|
131
|
-
// List Skills
|
|
132
|
-
// ----------------------
|
|
133
|
-
|
|
134
|
-
function listSkills() {
|
|
135
|
-
const skills = fs.readdirSync(skillsRoot);
|
|
136
|
-
console.log("\nAvailable Skills:\n");
|
|
137
|
-
skills.forEach(s => console.log(" -", s));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// ----------------------
|
|
141
|
-
// CLI
|
|
142
|
-
// ----------------------
|
|
143
|
-
|
|
144
|
-
function run() {
|
|
145
|
-
const command = args[0];
|
|
146
|
-
const force = args.includes("--force");
|
|
147
|
-
|
|
148
|
-
switch (command) {
|
|
149
|
-
case "install":
|
|
150
|
-
install({ force });
|
|
151
|
-
break;
|
|
152
|
-
|
|
153
|
-
case "sync":
|
|
154
|
-
sync({ force });
|
|
155
|
-
break;
|
|
156
|
-
|
|
157
|
-
case "list":
|
|
158
|
-
listSkills();
|
|
159
|
-
break;
|
|
160
|
-
|
|
161
|
-
case "doctor":
|
|
162
|
-
console.log("Gemini:", path.join(os.homedir(), ".gemini", "skills"));
|
|
163
|
-
console.log("Claude:", path.join(os.homedir(), ".claude", "skills"));
|
|
164
|
-
break;
|
|
165
|
-
|
|
166
|
-
default:
|
|
167
|
-
console.log(`
|
|
168
|
-
Usage:
|
|
169
|
-
|
|
170
|
-
agent-skills install → auto detect & install
|
|
171
|
-
agent-skills sync → update skills
|
|
172
|
-
agent-skills list → list all skills
|
|
173
|
-
agent-skills doctor → show paths
|
|
174
|
-
|
|
175
|
-
Options:
|
|
176
|
-
--force overwrite existing files
|
|
177
|
-
`);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
run();
|
package/parse_skills.py
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import glob
|
|
3
|
-
import re
|
|
4
|
-
|
|
5
|
-
skills = []
|
|
6
|
-
for file in glob.glob("**/*.md", recursive=True):
|
|
7
|
-
if file.lower().endswith("skill.md"):
|
|
8
|
-
with open(file, "r") as f:
|
|
9
|
-
content = f.read()
|
|
10
|
-
|
|
11
|
-
# Use folder name for title
|
|
12
|
-
folder_name = os.path.basename(os.path.dirname(file))
|
|
13
|
-
name = folder_name
|
|
14
|
-
|
|
15
|
-
# Extract description
|
|
16
|
-
desc = ""
|
|
17
|
-
desc_match = re.search(r"^description:\s*(.+)$", content, re.MULTILINE)
|
|
18
|
-
if desc_match:
|
|
19
|
-
desc = desc_match.group(1).strip()
|
|
20
|
-
|
|
21
|
-
if not desc:
|
|
22
|
-
# look for text after ## Description
|
|
23
|
-
desc_match = re.search(r"## Description\n+(.*?)(?=\n##|$)", content, re.DOTALL)
|
|
24
|
-
if desc_match:
|
|
25
|
-
desc = desc_match.group(1).strip().replace('\n', ' ')
|
|
26
|
-
|
|
27
|
-
if not desc:
|
|
28
|
-
desc = "No description available."
|
|
29
|
-
|
|
30
|
-
skills.append({"name": name, "desc": desc, "path": file})
|
|
31
|
-
|
|
32
|
-
skills.sort(key=lambda x: x['name'].lower())
|
|
33
|
-
|
|
34
|
-
with open("README.md", "w") as f:
|
|
35
|
-
f.write("# Agent Skills Repository\n\n")
|
|
36
|
-
f.write("This repository contains a collection of agent skills designed to make AI agents smarter and more capable across a wide variety of tasks.\n\n")
|
|
37
|
-
f.write("## Available Skills\n\n")
|
|
38
|
-
|
|
39
|
-
for skill in skills:
|
|
40
|
-
f.write(f"### {skill['name']}\n\n")
|
|
41
|
-
f.write(f"**Path:** `{skill['path']}`\n\n")
|
|
42
|
-
f.write(f"{skill['desc']}\n\n")
|
|
43
|
-
|
|
44
|
-
print(f"Generated README.md with {len(skills)} skills.")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|