5 Commits

Author SHA1 Message Date
Jaime Wren 13b3b324f7 refactoring: Implement resource fetching service, add new skill definitions, and introduce prompts file. 2026-03-04 08:36:37 -08:00
Jaime Wren b56aca04ee Remove the restriction that no URLs should be included in SKILLS.md files 2026-03-03 08:07:20 -08:00
Jaime Wren 332c03cda3 feat: Remove the resources field from skill generation and metadata, and add a new flutter-architecture skill.
This resolves https://github.com/flutter/skills/issues/9
2026-03-02 23:52:13 -08:00
Jaime Wren 75d8d9671a Improve CLI error handling, validation edge cases, and resource paths
Addresses several points of failure during the skill generation and validation lifecycle to prevent crashes and provide better error visibility. Additionally, it expands the capability of the `resources` field to accept local relative file paths in addition to URLs.
Key changes include:
- **Expanded Resource Support:** Updated `BaseSkillCommand` and `SkillParams` to allow the `resources` list to take both URLs and relative file paths, improving local testing and generation workflows.
- **Service Robustness:** Enhanced `GeminiService` and API interactions to gracefully handle errors, empty responses, and malformed JSON payloads.
- **Command Reliability:** Updated `GenerateSkillCommand` and `ValidateSkillCommand` to detect and gracefully log generic exceptions and empty content fetches instead of failing silently or crashing.
- **HTML/Markdown Parsing:** Broadened test coverage to cover conversions for tables, definition lists (dl/dt/dd), video sources, iframes, and details/summary HTML tags.
- **Comprehensive Testing:** Added unit tests across `generate_skills_test.dart`, `validate_skills_test.dart`, and `gemini_service_test.dart` to explicitly cover invalid API responses, missing metadata fallbacks, and retry logic.
- **Documentation:** Updated `README.md` to reflect the refined parameters, new resource path capabilities, and handling logic.
2026-03-01 23:16:47 -08:00
Jaime Wren fca56eee22 This introduces a new Dart CLI application in the tool/ directory designed to automate the creation and validation of Agent Skills
Contributions from @jwren as well as @johnpryan

https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
2026-02-25 15:23:31 -08:00