mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-12-02 23:37:17 +00:00
Same root cause as #587/#591 — Claude Code's runtime loader rejects array-form skills paths like ["./content-production", "./ai-seo", ...] even when each entry is a valid subdirectory containing SKILL.md. `claude plugin validate` accepts them but the loader does not. The proven canonical layout (used by self-improving-agent in #536): <plugin>/ ├── .claude-plugin/plugin.json skills: "./skills" └── skills/ ├── <skill-1>/SKILL.md ├── <skill-2>/SKILL.md └── ... Restructured 9 multi-skill domain plugins: - business-growth (4 skills moved) - c-level-advisor (28) - engineering (36) - engineering-team (32) - finance (2) - marketing-skill (43) - product-team (12) - project-management (8) - ra-qm-team (13) Also fixed standalone plugins that had root SKILL.md + ./skills/ subdir (agenthub, autoresearch-agent, executive-mentor, playwright-pro). The loader rejected them despite skills="./skills" because of the conflicting root SKILL.md (compare self-improving-agent which works because PR #536 moved its root SKILL.md). Moved each root SKILL.md into ./skills/<name>/. Restored standalone plugin folders to their original paths after the multi-skill restructure swept them into parent skills/ directories (marketplace.json source paths require original locations). Removed 7 orphaned marketplace entries that pointed to skill folders without their own plugin.json (content-creator, demand-gen, fullstack-engineer, aws-architect, product-manager, scrum-master, skill-security-auditor) — these were already non-functional. Bumped patch versions on every changed plugin and synced marketplace.json. Marketplace now lists 29 working plugins (down from 36). After merge: users run `/plugin marketplace update claude-code-skills` followed by `/plugin update --all` to pick up the working layout.
39 lines
1.4 KiB
JSON
39 lines
1.4 KiB
JSON
{
|
|
"language": "python",
|
|
"framework": "pytest",
|
|
"source_code": "def calculate_discount(price: float, discount_percent: float) -> float:\n \"\"\"Calculate discounted price.\"\"\"\n if price < 0:\n raise ValueError(\"Price cannot be negative\")\n if discount_percent < 0 or discount_percent > 100:\n raise ValueError(\"Discount must be between 0 and 100\")\n \n discount_amount = price * (discount_percent / 100)\n return round(price - discount_amount, 2)",
|
|
"requirements": {
|
|
"user_stories": [
|
|
{
|
|
"description": "Calculate discounted price for valid inputs",
|
|
"action": "calculate_discount",
|
|
"given": ["Price is 100", "Discount is 20%"],
|
|
"when": "Discount is calculated",
|
|
"then": "Return 80.00",
|
|
"error_conditions": [
|
|
{
|
|
"condition": "negative_price",
|
|
"description": "Price is negative",
|
|
"error_type": "ValueError"
|
|
},
|
|
{
|
|
"condition": "invalid_discount",
|
|
"description": "Discount is out of range",
|
|
"error_type": "ValueError"
|
|
}
|
|
],
|
|
"edge_cases": [
|
|
{
|
|
"scenario": "zero_discount",
|
|
"description": "Discount is 0%"
|
|
},
|
|
{
|
|
"scenario": "full_discount",
|
|
"description": "Discount is 100%"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"coverage_threshold": 90
|
|
}
|