17 Commits

Author SHA1 Message Date
Jaime Wren bac9fc29bb Add --dry-run flag
Add --dry-run flag to generate, update, and validate commands to allow previewing fetched resources and configurations without triggering Gemini API calls or file modifications.
2026-03-09 23:48:56 -07:00
Jaime Wren 9f939a6e18 Add description assertions to YAML asset tests
- Enforce that all skills in `flutter_skills.yaml` contain the keyword "Flutter" in their description.
- Enforce that all skills in `dart_skills.yaml` contain the keyword "Dart" in their description.
2026-03-05 00:48:11 -08:00
Jaime Wren fb607cd88c Add update-skill command to merge new docs into existing skills
This resoves https://github.com/flutter/skills/issues/7
2026-03-04 13:45:58 -08:00
John Ryan d7f914e8b1 Merge pull request #25 from jwren/init-fetching-service
refactoring: Implement resource fetching service, add new skill definitions, and introduce prompts file.
2026-03-04 09:34:41 -08:00
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 cbec08b894 Enable strict analysis options and resolve type warnings 2026-03-03 08:27:45 -08:00
John Ryan 1b30826f8a Merge pull request #11 from jwren/rm-url-restrictions
Remove the URL restrictions for Flutter and Dart documentation
2026-03-03 08:12:35 -08:00
John Ryan 86a4e4cc26 Merge pull request #12 from jwren/rm-skill_assertions_test
Remove skill_assertions_test.dart, the validate command should be used instead
2026-03-03 08:12:09 -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 f952a55478 Remove skill_assertions_test.dart, the validate command should be used instead 2026-03-03 08:04:07 -08:00
Jaime Wren 504f3c715e Remove the URL restrictions for Flutter and Dart documentation 2026-03-03 07:53:35 -08:00
John Ryan cc06019c0d Merge pull request #8 from jwren/second-github-workflow-analyzer-3
Add Flutter `dart test` into the CI workflow
2026-03-03 07:45:52 -08:00
Jaime Wren dfbbaa7f92 Run dart format . 2026-03-03 07:21:44 -08:00
Jaime Wren 835ecba9d6 wip, pushing this change to test the presubmit 2026-03-03 07:08: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