Skip to content

Commit 4914358

Browse files
marcfargaspi-mono
andcommitted
fix: move reference files to ref/ subdirectories
Moves progressive discovery reference files (auth.md, storage.md, etc.) to ref/ subdirectories within azcli/ and gcloud/ to avoid pi detecting them as separate incomplete skills. Structure: azcli/ ├── SKILL.md ← hub └── ref/ ← reference docs ├── auth.md ├── storage.md └── ... Updated hub files (azcli/SKILL.md, gcloud/SKILL.md) to reference ref/*.md. Verified: - skills add still finds 8/8 skills ✅ - All internal references intact (gcloud/ref/iam.md → auth.md works) - No broken links Co-Authored-By: Pi <noreply@pi.dev>
1 parent ad8c2e3 commit 4914358

17 files changed

Lines changed: 27 additions & 17 deletions

.changeset/flatten-directory-structure.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44

55
Flatten directory structure for skills CLI compatibility.
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/`). This allows `npx skills add marcfargas/skills` to discover all 8 skills without the `--full-depth` flag.
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.
88

9-
**Before:** 1/8 skills found by default
10-
**After:** 8/8 skills found by default
9+
**Before:** 1/8 skills found by default (npx skills add)
10+
**After:** 8/8 skills found by default ✅
11+
12+
**Structure:**
13+
```
14+
azcli/
15+
├── SKILL.md ← hub (150 lines)
16+
└── ref/ ← loaded on demand
17+
├── auth.md
18+
├── storage.md
19+
└── ...
20+
```

azcli/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ Key global flags: `--subscription`, `--output` (`-o`), `--query`, `--verbose`, `
7474

7575
| Service | File | Key Commands |
7676
|---------|------|-------------|
77-
| Auth & Config | [auth.md](auth.md) | Login, service principals, managed identities, subscriptions, config |
78-
| IAM & Resources | [iam.md](iam.md) | Resource groups, RBAC, Entra ID (Azure AD), Key Vault |
79-
| Compute & Networking | [compute.md](compute.md) | VMs, VNets, NSGs, DNS, load balancers, monitoring |
80-
| Serverless & Containers | [serverless.md](serverless.md) | App Service, Functions, Container Apps, AKS, Container Registry |
81-
| Storage | [storage.md](storage.md) | Storage accounts, blobs, file shares, queues, tables |
82-
| Data | [data.md](data.md) | SQL Database, Cosmos DB, Service Bus, Event Hubs |
83-
| Automation & CI/CD | [automation.md](automation.md) | Scripting, output formats, JMESPath, Bicep/ARM, GitHub Actions |
77+
| Auth & Config | [auth.md](ref/auth.md) | Login, service principals, managed identities, subscriptions, config |
78+
| IAM & Resources | [iam.md](ref/iam.md) | Resource groups, RBAC, Entra ID (Azure AD), Key Vault |
79+
| Compute & Networking | [compute.md](ref/compute.md) | VMs, VNets, NSGs, DNS, load balancers, monitoring |
80+
| Serverless & Containers | [serverless.md](ref/serverless.md) | App Service, Functions, Container Apps, AKS, Container Registry |
81+
| Storage | [storage.md](ref/storage.md) | Storage accounts, blobs, file shares, queues, tables |
82+
| Data | [data.md](ref/data.md) | SQL Database, Cosmos DB, Service Bus, Event Hubs |
83+
| Automation & CI/CD | [automation.md](ref/automation.md) | Scripting, output formats, JMESPath, Bicep/ARM, GitHub Actions |
8484

8585
**Read the per-service file for full command reference.**
8686

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

gcloud/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ Key global flags: `--project`, `--format`, `--filter`, `--limit`, `--quiet`, `--
7171

7272
| Service | File | Key Commands |
7373
|---------|------|-------------|
74-
| Auth & Config | [auth.md](auth.md) | Login, ADC, impersonation, config profiles |
75-
| IAM & Projects | [iam.md](iam.md) | Projects, APIs, service accounts, Secret Manager |
76-
| Compute & Networking | [compute.md](compute.md) | VMs, SSH, firewall, VPC, DNS, static IPs |
77-
| Serverless | [serverless.md](serverless.md) | Cloud Run, Functions, App Engine, Scheduler, Tasks |
78-
| Storage & Artifacts | [storage.md](storage.md) | gcloud storage, Artifact Registry |
79-
| Data | [data.md](data.md) | Cloud SQL, BigQuery (bq), Pub/Sub |
80-
| Automation & CI/CD | [automation.md](automation.md) | Scripting, output formats, filtering, GitHub Actions, operations |
74+
| Auth & Config | [auth.md](ref/auth.md) | Login, ADC, impersonation, config profiles |
75+
| IAM & Projects | [iam.md](ref/iam.md) | Projects, APIs, service accounts, Secret Manager |
76+
| Compute & Networking | [compute.md](ref/compute.md) | VMs, SSH, firewall, VPC, DNS, static IPs |
77+
| Serverless | [serverless.md](ref/serverless.md) | Cloud Run, Functions, App Engine, Scheduler, Tasks |
78+
| Storage & Artifacts | [storage.md](ref/storage.md) | gcloud storage, Artifact Registry |
79+
| Data | [data.md](ref/data.md) | Cloud SQL, BigQuery (bq), Pub/Sub |
80+
| Automation & CI/CD | [automation.md](ref/automation.md) | Scripting, output formats, filtering, GitHub Actions, operations |
8181

8282
**Read the per-service file for full command reference.**
8383

0 commit comments

Comments
 (0)