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.
77 lines
2.3 KiB
JSON
77 lines
2.3 KiB
JSON
{
|
|
"test_generation": {
|
|
"generated_tests": [
|
|
{
|
|
"name": "should_validate_password_length_successfully",
|
|
"type": "happy_path",
|
|
"priority": "P0",
|
|
"framework": "jest",
|
|
"code": "it('should validate password with sufficient length', () => {\n const validator = new PasswordValidator();\n const result = validator.validate('Test@123');\n expect(result).toBe(true);\n});"
|
|
},
|
|
{
|
|
"name": "should_handle_too_short_password",
|
|
"type": "error_case",
|
|
"priority": "P0",
|
|
"framework": "jest",
|
|
"code": "it('should reject password shorter than 8 characters', () => {\n const validator = new PasswordValidator();\n const result = validator.validate('Test@1');\n expect(result).toBe(false);\n});"
|
|
}
|
|
],
|
|
"test_file": "password-validator.test.ts",
|
|
"total_tests_generated": 8
|
|
},
|
|
"coverage_analysis": {
|
|
"summary": {
|
|
"line_coverage": 100.0,
|
|
"branch_coverage": 100.0,
|
|
"function_coverage": 100.0,
|
|
"total_lines": 20,
|
|
"covered_lines": 20,
|
|
"total_branches": 12,
|
|
"covered_branches": 12
|
|
},
|
|
"gaps": [],
|
|
"assessment": "Excellent coverage - all paths tested"
|
|
},
|
|
"metrics": {
|
|
"complexity": {
|
|
"cyclomatic_complexity": 6,
|
|
"cognitive_complexity": 8,
|
|
"testability_score": 85.0,
|
|
"assessment": "Medium complexity - moderately testable"
|
|
},
|
|
"test_quality": {
|
|
"total_tests": 8,
|
|
"total_assertions": 16,
|
|
"avg_assertions_per_test": 2.0,
|
|
"isolation_score": 95.0,
|
|
"naming_quality": 87.5,
|
|
"quality_score": 88.0,
|
|
"test_smells": []
|
|
}
|
|
},
|
|
"recommendations": [
|
|
{
|
|
"priority": "P1",
|
|
"type": "edge_case_coverage",
|
|
"message": "Consider adding boundary value tests",
|
|
"action": "Add tests for exact boundary conditions (7 vs 8 characters)",
|
|
"impact": "medium"
|
|
},
|
|
{
|
|
"priority": "P2",
|
|
"type": "test_organization",
|
|
"message": "Group related tests using describe blocks",
|
|
"action": "Organize tests by feature (length validation, complexity validation)",
|
|
"impact": "low"
|
|
}
|
|
],
|
|
"tdd_workflow": {
|
|
"current_phase": "GREEN",
|
|
"status": "Tests passing, ready for refactoring",
|
|
"next_steps": [
|
|
"Review code for duplication",
|
|
"Consider extracting validation rules",
|
|
"Commit changes"
|
|
]
|
|
}
|
|
}
|