agent-skillforge 0.3.0__tar.gz → 0.4.1__tar.gz
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.
- agent_skillforge-0.4.1/PKG-INFO +388 -0
- agent_skillforge-0.4.1/README.md +350 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/pyproject.toml +1 -1
- agent_skillforge-0.4.1/src/agent_skillforge.egg-info/PKG-INFO +388 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/agent_skillforge.egg-info/SOURCES.txt +7 -1
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/__init__.py +1 -1
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/adapters.py +71 -18
- agent_skillforge-0.4.1/src/skillforge/builtin_skills/contract-test-generator/SKILL.md +52 -0
- agent_skillforge-0.4.1/src/skillforge/builtin_skills/secret-sanitizer/SKILL.md +42 -0
- agent_skillforge-0.4.1/src/skillforge/builtin_skills/supply-chain-sentinel/SKILL.md +42 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/cli.py +393 -26
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/registry.py +132 -34
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/security.py +107 -6
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/skill.py +1 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_adapters.py +3 -1
- agent_skillforge-0.4.1/tests/test_badge.py +56 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_builtins.py +3 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_cli.py +29 -0
- agent_skillforge-0.4.1/tests/test_hardening.py +119 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_security.py +26 -0
- agent_skillforge-0.4.1/tests/test_verify_and_pinning.py +129 -0
- agent_skillforge-0.3.0/PKG-INFO +0 -294
- agent_skillforge-0.3.0/README.md +0 -256
- agent_skillforge-0.3.0/src/agent_skillforge.egg-info/PKG-INFO +0 -294
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/LICENSE +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/setup.cfg +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/agent_skillforge.egg-info/dependency_links.txt +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/agent_skillforge.egg-info/entry_points.txt +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/agent_skillforge.egg-info/requires.txt +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/agent_skillforge.egg-info/top_level.txt +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/__main__.py +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/agent-observability/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/antislop-code/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/blast-radius-containment/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/caveman/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/cognitive-loop-breaker/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/context-compactor/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/flaky-test-isolation/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/human-in-the-loop/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/mcp-tool-designer/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/performance-profiler/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/runtime-api-verification/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/security-threat-modeler/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/self-improving-agent/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/skill-architect/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/skill-architect/references/mechanics.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/spec-driven-development/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/summarize/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/systematic-debugging/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/tavily-search/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/builtin_skills/zero-downtime-migration/SKILL.md +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/errors.py +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/src/skillforge/mcp_server.py +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_mcp_server.py +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_registry.py +0 -0
- {agent_skillforge-0.3.0 → agent_skillforge-0.4.1}/tests/test_skill.py +0 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-skillforge
|
|
3
|
+
Version: 0.4.1
|
|
4
|
+
Summary: Universal package manager, security auditor, and MCP server for portable agent skills (SKILL.md).
|
|
5
|
+
Author-email: gintingism <gintingism@users.noreply.github.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/gintingism/skillforge
|
|
8
|
+
Project-URL: Repository, https://github.com/gintingism/skillforge
|
|
9
|
+
Project-URL: Issues, https://github.com/gintingism/skillforge/issues
|
|
10
|
+
Project-URL: Documentation, https://gintingism.github.io/skillforge/
|
|
11
|
+
Keywords: agent-skills,skills,agentskills,mcp,claude-code,cursor,antigravity,windsurf,security-audit,prompt-injection,developer-tools
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Security
|
|
20
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: mcp>=2.3.0
|
|
26
|
+
Requires-Dist: PyYAML>=6.0
|
|
27
|
+
Requires-Dist: typer>=0.12
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
30
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
33
|
+
Requires-Dist: twine>=5.0; extra == "dev"
|
|
34
|
+
Requires-Dist: types-PyYAML>=6.0; extra == "dev"
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
<div align="center">
|
|
40
|
+
|
|
41
|
+
# SkillForge
|
|
42
|
+
|
|
43
|
+
**Universal package manager, security auditor, and context token profiler for portable AI agent skills (`SKILL.md`).**
|
|
44
|
+
|
|
45
|
+
[](https://pypi.org/project/agent-skillforge/)
|
|
46
|
+
[](https://pypi.org/project/agent-skillforge/)
|
|
47
|
+
[](https://github.com/gintingism/skillforge/actions)
|
|
48
|
+
[](https://opensource.org/licenses/MIT)
|
|
49
|
+
[](https://github.com/gintingism/skillforge)
|
|
50
|
+
|
|
51
|
+
*Write once. Audit locally. Deploy seamlessly across Claude Code, Cursor, Google Antigravity, Windsurf, Copilot, and Cline.*
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## ⚡ 10-Second Quickstart (Zero-Install)
|
|
58
|
+
|
|
59
|
+
No Node.js, npm, or permanent installation required. Run directly with `uvx` or `pipx`:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# 1. Diagnose your workstation & assistant skills for security & bloat
|
|
63
|
+
uvx agent-skillforge doctor
|
|
64
|
+
|
|
65
|
+
# 2. Audit any local or community skill before executing it
|
|
66
|
+
uvx agent-skillforge audit ./skills/my-skill
|
|
67
|
+
|
|
68
|
+
# 3. Profile startup context token overhead vs on-demand body cost
|
|
69
|
+
uvx agent-skillforge budget
|
|
70
|
+
|
|
71
|
+
# 4. Generate an official verified badge for your skill repository
|
|
72
|
+
uvx agent-skillforge badge ./skills/my-skill
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Or install permanently via `pip`:
|
|
76
|
+
```bash
|
|
77
|
+
pip install agent-skillforge
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 💡 Why SkillForge?
|
|
83
|
+
|
|
84
|
+
As AI coding assistants adopt the open `SKILL.md` format (standardized under the Agentic AI Foundation / AAIF), two major friction points have emerged:
|
|
85
|
+
|
|
86
|
+
1. **Supply-Chain & Prompt Injection Attacks:** Community skills are executable instruction sets. Unvetted skills can hide indirect prompt injections, Trojan Unicode characters, credential harvesters (`~/.ssh`, `~/.aws`), or command injections.
|
|
87
|
+
2. **Context Window & Token Burn:** Loading unoptimized skills burns hundreds of tokens on every turn before an agent even starts thinking, driving up API bills and degrading reasoning quality.
|
|
88
|
+
|
|
89
|
+
| Feature | Manual Copy-Paste | Node CLIs (`npx skills`) | **SkillForge** |
|
|
90
|
+
| :--- | :---: | :---: | :---: |
|
|
91
|
+
| **Language Runtime** | None | Requires Node.js / npm | **Pure Python (`uvx` / `pip`)** |
|
|
92
|
+
| **Offline Security Linter** | ❌ None | ⚠️ Cloud-dependent / SaaS | **✅ 100% Local Deterministic AST & Regex** |
|
|
93
|
+
| **Prompt Injection Detection** | ❌ None | ❌ No | **✅ Built-in (`SEC-002`)** |
|
|
94
|
+
| **Trojan Unicode & Bidi Scans** | ❌ None | ❌ No | **✅ Built-in (`SEC-001`, `SEC-005`)** |
|
|
95
|
+
| **Context Token Profiler** | ❌ None | ❌ No | **✅ Built-in (`skillforge budget`)** |
|
|
96
|
+
| **Reproducible Lockfile** | ❌ None | ⚠️ Loose | **✅ SHA-256 + Pinned Git Commit SHA** |
|
|
97
|
+
| **Native MCP Server** | ❌ None | ❌ No | **✅ Built-in (`skillforge serve-mcp`)** |
|
|
98
|
+
| **Assistant Targets** | Manual | Limited | **Claude, Cursor, Antigravity, Windsurf, Cline, Copilot** |
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 🛠️ Core Workflows
|
|
103
|
+
|
|
104
|
+
### 1. Diagnose your workspace (`doctor`)
|
|
105
|
+
|
|
106
|
+
Inspect all installed skills across your project or global workstation (Claude Code, Cursor, Antigravity, Windsurf, Cline) for security vulnerabilities, context window load, and broken pointers:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Diagnose active project
|
|
110
|
+
skillforge doctor
|
|
111
|
+
|
|
112
|
+
# Diagnose all global machine skills
|
|
113
|
+
skillforge doctor --global
|
|
114
|
+
```
|
|
115
|
+
```text
|
|
116
|
+
SkillForge Doctor Diagnostic (Project: 4 skills)
|
|
117
|
+
Health Status: PASSED (All Healthy)
|
|
118
|
+
Startup Context Load: ~340 tokens (Every turn discovery cost)
|
|
119
|
+
On-Demand Body Cost: ~2180 tokens
|
|
120
|
+
Security Findings: 0 Critical, 0 High, 0 Total
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 2. Audit a skill before running it (`audit`)
|
|
124
|
+
|
|
125
|
+
Before letting an agent read and execute a skill, inspect it for hidden payloads, broken progressive disclosure links, and prompt injection:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
skillforge audit ./skills/my-new-skill
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Example output:
|
|
132
|
+
```text
|
|
133
|
+
Audit Report: my-new-skill
|
|
134
|
+
Status: PASSED (Score: 100/100)
|
|
135
|
+
Context Load: 60 pointer tokens | 520 body tokens (27 lines)
|
|
136
|
+
Total Findings: 0
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
What the auditor scans for:
|
|
140
|
+
- **Invisible Unicode (SEC-001):** Zero-width spaces (`\u200B`, `\uFEFF`), homoglyphs, and directional overrides used to hide prompt instructions from human code review.
|
|
141
|
+
- **Prompt Injections & Jailbreaks (SEC-002):** Directives like `"ignore previous instructions"`, `"system override"`, or attempts to disable safety guardrails. Quoted references in defensive guides are flagged as `MEDIUM`, while bare imperative commands remain `CRITICAL`.
|
|
142
|
+
- **Dangerous Shell Commands (SEC-003):** Script patterns like `curl ... | bash`, base64-decoded execution, and outbound data exfiltration.
|
|
143
|
+
- **Credential Path Access (SEC-004):** Unsanctioned attempts to access `~/.ssh`, `~/.aws/credentials`, or local environment secrets.
|
|
144
|
+
- **Invisible Bidi & Control Characters (SEC-005):** Trojan Source bidirectional control characters (`\u202E`, `\u2066`) that alter code execution order while displaying harmlessly.
|
|
145
|
+
- **Markdown Link Spoofing & Phishing (SEC-006):** Mismatched visual labels vs target URLs hiding malicious redirects.
|
|
146
|
+
- **Trigger Quality (QUAL-001):** Verifies model-invoked descriptions contain explicit activation conditions.
|
|
147
|
+
- **Directory Alignment (QUAL-002):** Ensures folder name matches YAML `name`.
|
|
148
|
+
- **Progressive Disclosure Budget (QUAL-003):** Flags `SKILL.md` bodies exceeding 500 lines or ~5,000 tokens so heavy references are moved to `references/`.
|
|
149
|
+
- **Broken Disclosure Pointers (QUAL-004):** Verifies cited `references/...` or `scripts/...` exist.
|
|
150
|
+
|
|
151
|
+
For CI pipelines, pass `--strict` to fail on any warning, or `--json` for automation:
|
|
152
|
+
```bash
|
|
153
|
+
skillforge audit ./skills/my-new-skill --strict --json
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### 3. Profile your project's context token budget (`budget`)
|
|
157
|
+
|
|
158
|
+
Every model-invoked skill keeps its `name` and `description` in the startup context window on every turn. Measure how much context your skills consume before they even trigger:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
skillforge budget
|
|
162
|
+
# Or inspect the built-in catalog:
|
|
163
|
+
skillforge budget --builtin
|
|
164
|
+
```
|
|
165
|
+
```text
|
|
166
|
+
Context Budget Profile (22 skills)
|
|
167
|
+
Always-Loaded Startup Pointer Cost: ~1305 tokens
|
|
168
|
+
On-Demand SKILL.md Body Cost: ~7483 tokens
|
|
169
|
+
Disclosed Resources Cost: ~349 tokens
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### 4. Generate an official verified badge (`badge`)
|
|
173
|
+
|
|
174
|
+
Show users that your skill is clean, secure, and audited. Generate an official badge for your skill repository:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
skillforge badge ./my-skill
|
|
178
|
+
```
|
|
179
|
+
```markdown
|
|
180
|
+
[](https://github.com/gintingism/skillforge)
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### 5. Grab a skill directly from GitHub (`add`)
|
|
184
|
+
|
|
185
|
+
Pull skills directly from remote Git repositories with security auditing and reproducible commit pinning:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Pull a specific skill from a GitHub repo
|
|
189
|
+
skillforge add anthropics/skills:pdf
|
|
190
|
+
|
|
191
|
+
# Pin to an exact release tag or branch
|
|
192
|
+
skillforge add anthropics/skills:pdf@v1.2.0
|
|
193
|
+
|
|
194
|
+
# Install from your team's repository
|
|
195
|
+
skillforge add gintingism/skillforge:systematic-debugging
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
SkillForge fetches the skill, audits its security, routes it to all detected assistant targets, and pins its SHA-256 digest + Git commit SHA into `skillforge.lock`.
|
|
199
|
+
|
|
200
|
+
### 6. Verify skill integrity and detect drift (`verify`)
|
|
201
|
+
|
|
202
|
+
Check installed skills against `skillforge.lock` in CI/CD or local environments without modifying files or making network requests. Detects file tampering, missing dependencies, or unmanaged skills:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Verify active project
|
|
206
|
+
skillforge verify
|
|
207
|
+
|
|
208
|
+
# Output JSON for CI automation
|
|
209
|
+
skillforge verify --json
|
|
210
|
+
```
|
|
211
|
+
```text
|
|
212
|
+
OK clean-code (sha256: 4f3a9e1208bc...)
|
|
213
|
+
OK systematic-debugging (sha256: 8a91bc7d01fe...)
|
|
214
|
+
|
|
215
|
+
Verification PASSED: 2 skill(s) match skillforge.lock.
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### 7. Compare changes before updating (`diff`)
|
|
219
|
+
|
|
220
|
+
Inspect diffs between local skills and upstream repositories, or compare two skill versions:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
skillforge diff ./skills/my-skill
|
|
224
|
+
skillforge diff my-skill gintingism/skillforge:my-skill
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### 8. Manage installed skills (`list` & `remove`)
|
|
228
|
+
|
|
229
|
+
See which skills are active across your editor targets:
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
skillforge list
|
|
233
|
+
```
|
|
234
|
+
```text
|
|
235
|
+
Installed Skills:
|
|
236
|
+
[ClaudeCode]:
|
|
237
|
+
- antislop-code
|
|
238
|
+
- systematic-debugging
|
|
239
|
+
[Cursor]:
|
|
240
|
+
- antislop-code
|
|
241
|
+
- systematic-debugging
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
To remove a skill from all detected assistants and update your lockfile:
|
|
245
|
+
```bash
|
|
246
|
+
skillforge remove antislop-code
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 9. Create and package your own skills (`create` & `pack`)
|
|
250
|
+
|
|
251
|
+
Scaffold a single skill file or a full directory package with scripts and reference docs:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
# Standard skill file
|
|
255
|
+
skillforge create api-design -d "Design REST/gRPC APIs. Use when creating new backend endpoints."
|
|
256
|
+
|
|
257
|
+
# Full package with scripts/ and references/
|
|
258
|
+
skillforge create db-migrator -d "Run Postgres migrations safely. Use when writing SQL schema updates." --full
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Pack it into a shareable zip archive (or unpack one safely with path traversal protection):
|
|
262
|
+
```bash
|
|
263
|
+
skillforge pack ./db-migrator --output ./db-migrator.zip
|
|
264
|
+
skillforge unpack ./db-migrator.zip --output ./skills
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## 🤖 Automate in CI/CD (GitHub Action)
|
|
270
|
+
|
|
271
|
+
Add SkillForge to your GitHub Actions workflow to audit every Pull Request:
|
|
272
|
+
|
|
273
|
+
```yaml
|
|
274
|
+
name: Audit Agent Skills
|
|
275
|
+
on: [pull_request, push]
|
|
276
|
+
|
|
277
|
+
jobs:
|
|
278
|
+
audit:
|
|
279
|
+
runs-on: ubuntu-latest
|
|
280
|
+
steps:
|
|
281
|
+
- uses: actions/checkout@v4
|
|
282
|
+
- name: Run SkillForge Security & Token Linter
|
|
283
|
+
uses: gintingism/skillforge@main
|
|
284
|
+
with:
|
|
285
|
+
path: './skills'
|
|
286
|
+
strict: 'true'
|
|
287
|
+
budget: 'true'
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## 🔌 Model Context Protocol (MCP) Integration
|
|
293
|
+
|
|
294
|
+
SkillForge includes a native MCP server so your coding agent can inspect, search, and audit skills autonomously during its development loop:
|
|
295
|
+
|
|
296
|
+
```json
|
|
297
|
+
{
|
|
298
|
+
"mcpServers": {
|
|
299
|
+
"skillforge": {
|
|
300
|
+
"command": "skillforge",
|
|
301
|
+
"args": ["serve-mcp"],
|
|
302
|
+
"env": {
|
|
303
|
+
"SKILLFORGE_REGISTRY_PATH": ".skillforge"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Exposed MCP tools:
|
|
311
|
+
- `search_skills(query, limit)`: Search local and built-in skill catalogs.
|
|
312
|
+
- `get_skill(name)`: Read the full `SKILL.md` instructions.
|
|
313
|
+
- `get_skill_resource(name, resource_path)`: Read disclosed `references/*` or `scripts/*` files on demand.
|
|
314
|
+
- `validate_skill(content)`: Test frontmatter syntax.
|
|
315
|
+
- `audit_skill(content)`: Audit a raw skill document for prompt injections and malicious patterns.
|
|
316
|
+
- `skill://{name}`: Resource URI for direct document retrieval.
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## 🎯 Supported Assistants
|
|
321
|
+
|
|
322
|
+
SkillForge automatically detects your assistant environment and routes skills to the canonical directory:
|
|
323
|
+
|
|
324
|
+
| Assistant | Detected by | Installed location |
|
|
325
|
+
| :--- | :--- | :--- |
|
|
326
|
+
| **Google Antigravity / Gemini CLI** | `.gemini/` | `.gemini/config/skills/<name>/SKILL.md` |
|
|
327
|
+
| **Claude Code & Claude Desktop** | `.claude/` | `.claude/skills/<name>/SKILL.md` |
|
|
328
|
+
| **Cursor** | `.cursor/` | `.cursor/skills/<name>/SKILL.md` |
|
|
329
|
+
| **Windsurf** | `.windsurf/`, `.windsurfrules` | `.windsurf/skills/<name>/SKILL.md` |
|
|
330
|
+
| **Cline / Roo-Code** | `.cline/`, `.roomodes` | `.cline/skills/<name>/SKILL.md` |
|
|
331
|
+
| **Codex / Universal Agents** | `AGENTS.md`, `.agents/` | Appended to `AGENTS.md` catalog |
|
|
332
|
+
| **GitHub Copilot** | `.github/` | `.github/copilot-instructions.md` |
|
|
333
|
+
|
|
334
|
+
To install a skill globally to your user profile instead of the current project, add `--global` (`-g`):
|
|
335
|
+
```bash
|
|
336
|
+
skillforge install systematic-debugging --global
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## 📦 Shipped Built-in Skills (22 Zero-Slop Skills)
|
|
342
|
+
|
|
343
|
+
SkillForge ships with 22 practical engineering skills designed to counteract common agent failure modes identified in benchmark research (SWE-bench, Snyk ToxicSkills, Skill-Inject):
|
|
344
|
+
|
|
345
|
+
### Code Quality, Security & Performance
|
|
346
|
+
- `supply-chain-sentinel`: Verify package existence, registry age, and run CVE audits (`pip-audit`, `npm audit`) before adding dependencies.
|
|
347
|
+
- `secret-sanitizer`: Pre-commit git diff auditor that prevents API keys, private tokens, and `.env` credentials from leaking.
|
|
348
|
+
- `contract-test-generator`: Property-based testing and contract boundary fuzz tests (Hypothesis, fast-check) to verify algebraic invariants.
|
|
349
|
+
- `blast-radius-containment`: Upstream reference tracing and a strict "file touch budget" before modifying shared code or public APIs.
|
|
350
|
+
- `security-threat-modeler`: Trust-boundary mapping, IDOR/BOLA object-level authorization checks, SSRF validation, and injection sink verification.
|
|
351
|
+
- `performance-profiler`: Baseline-first latency (`p50`/`p95`/`p99`), N+1 query detection, and algorithmic complexity verification before optimizing.
|
|
352
|
+
- `antislop-code`: Comment hygiene and anti-overengineering filters (removes trivial narrative comments, stops speculative generality).
|
|
353
|
+
- `spec-driven-development`: Schema-first API design and red-green verification loops before writing application logic.
|
|
354
|
+
- `zero-downtime-migration`: Four-phase Expand-Contract pattern for non-breaking database schema and API payload evolutions.
|
|
355
|
+
|
|
356
|
+
### Autonomous Loop Stability & Debugging
|
|
357
|
+
- `systematic-debugging`: Disciplined four-phase diagnosis protocol (Reproduce, Isolate, Hypothesize, Surgical Patch) before touching code.
|
|
358
|
+
- `cognitive-loop-breaker`: Three-strikes circuit breaker that forces a hard `git restore` and hypothesis invalidation when stuck in repetitive edit-fail loops.
|
|
359
|
+
- `flaky-test-isolation`: Stress-reproduction loop (50x iterations) and diagnosis protocol for race conditions, clock skew, and state leakage.
|
|
360
|
+
- `runtime-api-verification`: Interactive signature introspection (`inspect`, `dir()`, compiler definitions) to prevent hallucinated kwargs.
|
|
361
|
+
|
|
362
|
+
### Context Efficiency & Multi-Agent Operations
|
|
363
|
+
- `skill-architect`: Multi-file progressive disclosure guide (bundled with `references/mechanics.md`) for authoring low-token `SKILL.md`, `AGENTS.md`, and `CLAUDE.md` files.
|
|
364
|
+
- `caveman`: Terse, high-density technical communication mode that reduces token spend while preserving exact paths, commands, and errors.
|
|
365
|
+
- `context-compactor`: Structured state distillation and active hypothesis ledgers for long-running agent threads nearing context limits.
|
|
366
|
+
- `mcp-tool-designer`: Type-safe schema design, idempotent hints, token boundaries, and stderr error separation for MCP servers.
|
|
367
|
+
- `agent-observability`: OpenTelemetry tracing standards, step timing, and 16KB payload truncation boundaries.
|
|
368
|
+
- `human-in-the-loop`: Three-tier permission model separating read-only queries from irreversible actions.
|
|
369
|
+
- `summarize`: Executive engineering summaries with exact file and line citations.
|
|
370
|
+
- `tavily-search`: Authoritative primary-source technical research with cross-verification.
|
|
371
|
+
- `self-improving-agent`: Error recording loop that turns recurring bugs into durable project rules.
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## 🚀 Community & Contributing
|
|
376
|
+
|
|
377
|
+
- **Distribution:** Published on PyPI as [`agent-skillforge`](https://pypi.org/project/agent-skillforge/).
|
|
378
|
+
- **Launch Playbook:** See [`docs/LAUNCH_PLAYBOOK.md`](docs/LAUNCH_PLAYBOOK.md) for community distribution and launch guidelines.
|
|
379
|
+
- **Development:**
|
|
380
|
+
```bash
|
|
381
|
+
git clone https://github.com/gintingism/skillforge.git
|
|
382
|
+
cd skillforge
|
|
383
|
+
python -m pip install -e ".[dev]"
|
|
384
|
+
pytest
|
|
385
|
+
mypy src
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
License: [MIT](LICENSE)
|