Skip to content

Commit 9a1faa0

Browse files
marcfargaspi-mono
andcommitted
refactor: move all skills to skills/ subdirectory
Moves all skills from repo root to skills/ subdirectory for cleaner organization. Root now only contains README, LICENSE, package.json, and repo metadata. Structure: / ├── README.md ├── LICENSE └── skills/ ├── azcli/ │ ├── SKILL.md │ └── ref/ ├── gcloud/ └── ... Updated package.json (files, pi.skills), README (table, structure), and regenerated .well-known/skills/index.json. Verified: 'npx skills add <repo> --list' still finds 8/8 skills ✅ Co-Authored-By: Pi <noreply@pi.dev>
1 parent 4914358 commit 9a1faa0

34 files changed

Lines changed: 56 additions & 51 deletions

.changeset/flatten-directory-structure.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22
"@marcfargas/skills": patch
33
---
44

5-
Flatten directory structure for skills CLI compatibility.
5+
Restructure for skills CLI compatibility and cleaner organization.
66

7-
All skills are now at the top level (e.g., `azcli/`, `gcloud/`) instead of nested in category folders (`azure/azcli/`, `google-cloud/gcloud/`). Progressive discovery reference files moved to `ref/` subdirectories to prevent pi from detecting them as separate skills.
7+
All skills moved to `skills/` subdirectory with flat structure. Progressive discovery reference files in `ref/` subdirectories.
88

9-
**Before:** 1/8 skills found by default (npx skills add)
10-
**After:** 8/8 skills found by default ✅
9+
**Before:** Nested category folders, 1/8 skills found by default
10+
**After:** Flat `skills/` directory, 8/8 skills found by default ✅
1111

1212
**Structure:**
1313
```
14-
azcli/
15-
├── SKILL.md ← hub (150 lines)
16-
└── ref/ ← loaded on demand
17-
├── auth.md
18-
├── storage.md
14+
/
15+
├── README.md
16+
├── LICENSE
17+
└── skills/
18+
├── azcli/
19+
│ ├── SKILL.md ← hub (~150 lines)
20+
│ └── ref/ ← loaded on demand
21+
│ ├── auth.md
22+
│ └── ...
23+
├── gcloud/
1924
└── ...
2025
```
26+
27+
**Key improvements:**
28+
- `npx skills add marcfargas/skills` discovers all 8 skills (no `--full-depth` needed)
29+
- Pi only detects `SKILL.md` files (not reference docs)
30+
- Cleaner repo root (README, LICENSE separate from skills)

.well-known/skills/index.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55
{
66
"name": "azcli",
77
"description": "Azure CLI (az). Use when: managing Azure resources, deploying to App Service/Functions/Container Apps/AKS, working with Storage, SQL Database, Cosmos DB, VMs, VNets, NSGs, Key Vault, Entra ID (Azure AD), RBAC, Service Bus, Event Hubs, Container Registry, Azure Monitor, DNS, or any Azure service. Also covers: authentication, subscription management, CI/CD integration (GitHub Actions/Azure DevOps), Bicep/ARM templates, managed identities, and infrastructure automation.",
8-
"path": "azcli"
8+
"path": "skills/azcli"
99
},
1010
{
1111
"name": "gcloud",
1212
"description": "Google Cloud Platform CLI (gcloud, gcloud storage, bq). Use when: managing GCP resources, deploying to Cloud Run/Cloud Functions/GKE/App Engine, working with Cloud Storage, BigQuery, IAM, Compute Engine, Cloud SQL, Pub/Sub, Secret Manager, Artifact Registry, Cloud Build, Cloud Scheduler, Cloud Tasks, Vertex AI, VPC/networking, DNS, logging/monitoring, or any GCP service. Also covers: authentication, project/config management, CI/CD integration, serverless deployments, container registry, docker push to GCP, managing secrets, Workload Identity Federation, and infrastructure automation.",
13-
"path": "gcloud"
13+
"path": "skills/gcloud"
1414
},
1515
{
1616
"name": "pm2",
1717
"description": "Process management with PM2 — start, stop, restart, monitor long-running processes. Use when: keeping services alive, auto-restart on crash, managing daemon processes, ecosystem configs, log management, startup scripts, process monitoring. Triggers: pm2, process manager, keep alive, daemon, auto-restart, ecosystem config, process monitoring.",
18-
"path": "pm2"
18+
"path": "skills/pm2"
1919
},
2020
{
2121
"name": "pre-release",
2222
"description": "Pre-release review and changeset generation for npm packages using @changesets/cli. Use when: preparing a release, generating changelogs, pre-release checklist, version bump, writing release notes, reviewing README before publish. Triggers: \"prepare release\", \"pre-release\", \"generate changelog\", \"write changesets\", \"release checklist\".",
23-
"path": "pre-release"
23+
"path": "skills/pre-release"
2424
},
2525
{
2626
"name": "repo-hygiene",
2727
"description": "Periodic repository health check — dependencies, git, CI/CD, code quality, docs, security. Use when: onboarding to a repo, weekly maintenance, after big refactors, before audits, \"is this repo in good shape?\". Triggers: \"repo hygiene\", \"health check\", \"repo health\", \"clean up repo\", \"maintenance check\", \"audit repo\", \"repo audit\".",
28-
"path": "repo-hygiene"
28+
"path": "skills/repo-hygiene"
2929
},
3030
{
3131
"name": "sheet-model",
3232
"description": "Headless spreadsheet engine for financial modeling, data analysis, and scenario comparison. Use when: building financial models with ratios and what-if scenarios, computing derived values from tabular data with formulas, producing .xlsx files with live formulas (not static values) for human review, any task where the agent would otherwise write imperative code to manipulate numbers that a spreadsheet does naturally. Triggers: financial model, scenario analysis, ratio computation, balance sheet, P&L, what-if, sensitivity analysis, banking ratios, spreadsheet model, build a model, projection, forecast. Do NOT use for: simple CSV/Excel read/write (use the xlsx skill), chart-only tasks, or data volumes exceeding ~5000 rows.",
33-
"path": "sheet-model"
33+
"path": "skills/sheet-model"
3434
},
3535
{
3636
"name": "vhs",
3737
"description": "Record terminal sessions as GIF/MP4/WebM using VHS (Charm.sh). Use when: create demo GIF, record terminal, terminal recording, demo video, tape file, animate CLI, screencast terminal, showcase command output, README demo, document CLI tool, generate terminal animation.",
38-
"path": "vhs"
38+
"path": "skills/vhs"
3939
},
4040
{
4141
"name": "web-search",
4242
"description": "Web search and content extraction using ddgs (multi-engine metasearch). No API keys required. Use when: searching documentation, facts, current information, news, fetching web content. Triggers: search the web, look up, find information, web search, news search, fetch page.",
43-
"path": "web-search"
43+
"path": "skills/web-search"
4444
}
4545
]
4646
}

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Reusable skills for AI coding agents. Works with [pi](https://github.com/marioze
66

77
| Category | Skill | Description |
88
|----------|-------|-------------|
9-
| ☁️ Azure | [azcli](azcli/) | Azure CLI with agent safety model — hub + reference files |
10-
| ☁️ Google Cloud | [gcloud](gcloud/) | GCP CLI with agent safety model — hub + 7 reference files |
11-
| 🔧 Maintenance | [repo-hygiene](repo-hygiene/) | Periodic repo health check — deps, git, CI, code quality, docs, security |
12-
| ⚙️ Process | [pm2](pm2/) | Process management — keep services alive, auto-restart, monitoring, ecosystem configs |
13-
| 🚀 Release | [pre-release](pre-release/) | Pre-release checklist + AI-written changesets via @changesets/cli |
14-
| 🔍 Search | [web-search](web-search/) | Web search + content extraction via [ddgs](https://github.com/deedy5/ddgs) — no API keys |
15-
| 📊 Modeling | [sheet-model](sheet-model/) | Headless spreadsheet engine for financial modeling, scenario analysis, .xlsx with live formulas |
16-
| 🎬 Terminal | [vhs](vhs/) | Record terminal sessions as GIF/MP4 with [VHS](https://github.com/charmbracelet/vhs) |
9+
| ☁️ Azure | [azcli](skills/azcli/) | Azure CLI with agent safety model — hub + reference files |
10+
| ☁️ Google Cloud | [gcloud](skills/gcloud/) | GCP CLI with agent safety model — hub + 7 reference files |
11+
| 🔧 Maintenance | [repo-hygiene](skills/repo-hygiene/) | Periodic repo health check — deps, git, CI, code quality, docs, security |
12+
| ⚙️ Process | [pm2](skills/pm2/) | Process management — keep services alive, auto-restart, monitoring, ecosystem configs |
13+
| 🚀 Release | [pre-release](skills/pre-release/) | Pre-release checklist + AI-written changesets via @changesets/cli |
14+
| 🔍 Search | [web-search](skills/web-search/) | Web search + content extraction via [ddgs](https://github.com/deedy5/ddgs) — no API keys |
15+
| 📊 Modeling | [sheet-model](skills/sheet-model/) | Headless spreadsheet engine for financial modeling, scenario analysis, .xlsx with live formulas |
16+
| 🎬 Terminal | [vhs](skills/vhs/) | Record terminal sessions as GIF/MP4 with [VHS](https://github.com/charmbracelet/vhs) |
1717

1818
## Install
1919

@@ -71,16 +71,18 @@ Skills use a **hub + spoke** architecture. The SKILL.md hub is ~140 lines — ju
7171
## Structure
7272

7373
```text
74-
skills/
75-
├── azcli/ # Azure CLI — hub + 7 reference files
76-
├── gcloud/ # GCP CLI — hub + 7 reference files
77-
├── repo-hygiene/ # Periodic repo health check
78-
├── pm2/ # Process management
79-
├── pre-release/ # Pre-release checklist + changesets
80-
├── web-search/ # Web search + content extraction
81-
├── sheet-model/ # Headless spreadsheet engine
82-
├── vhs/ # Terminal session recording
83-
└── README.md
74+
.
75+
├── README.md
76+
├── LICENSE
77+
└── skills/
78+
├── azcli/ # Azure CLI — hub + 7 reference files
79+
├── gcloud/ # GCP CLI — hub + 7 reference files
80+
├── repo-hygiene/ # Periodic repo health check
81+
├── pm2/ # Process management
82+
├── pre-release/ # Pre-release checklist + changesets
83+
├── web-search/ # Web search + content extraction
84+
├── sheet-model/ # Headless spreadsheet engine
85+
└── vhs/ # Terminal session recording
8486
```
8587

8688
## External Skills

package.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
],
2525
"pi": {
2626
"skills": [
27-
"azcli",
28-
"gcloud",
29-
"repo-hygiene",
30-
"pm2",
31-
"pre-release",
32-
"web-search",
33-
"sheet-model",
34-
"vhs"
27+
"skills/azcli",
28+
"skills/gcloud",
29+
"skills/repo-hygiene",
30+
"skills/pm2",
31+
"skills/pre-release",
32+
"skills/web-search",
33+
"skills/sheet-model",
34+
"skills/vhs"
3535
]
3636
},
3737
"scripts": {
@@ -49,14 +49,7 @@
4949
},
5050
"files": [
5151
".well-known/",
52-
"azcli/",
53-
"gcloud/",
54-
"repo-hygiene/",
55-
"pm2/",
56-
"pre-release/",
57-
"web-search/",
58-
"sheet-model/",
59-
"vhs/",
52+
"skills/",
6053
"!**/node_modules",
6154
"!**/package-lock.json",
6255
"README.md",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)