feat: add k8s-pod-rightsizer skill, file_create tool, and skill metadata improvements#21
Merged
initializ-mk merged 5 commits intomainfrom Mar 4, 2026
Merged
Conversation
…er skill - Add file_create builtin tool that writes files to disk and returns structured JSON with path for channel upload and cross-tool reference - Files are written to the agent's .forge/files/ directory via FilesDir context value, with fallback to $TMPDIR/forge-files/ - Add FilesDir to LLMExecutorConfig and inject into execution context - Fix Slack file extraction to preserve raw content for typed files - Add k8s-pod-rightsizer embedded skill with apply workflow instructions - Update docs for tools, runtime, and skills
Replace default cardboard box icon with skill-specific icons: ⚖️ k8s-pod-rightsizer, 🔬 tavily-research, 🔎 code-review, 📏 code-review-standards, ⚛️ codegen-react, 🌐 codegen-html
Add `icon` field to SkillMetadata and SkillDescriptor, flowing through the parser → scanner → registry → TUI pipeline. Icons are now declared in each skill's SKILL.md frontmatter (e.g. `icon: ⚖️`) and automatically picked up via go:embed — no TUI code changes needed when adding skills. The hardcoded skillIcon() map is replaced with a simple fallback that returns 📦 for skills missing the field. A test ensures all embedded skills declare an icon.
- github: category=developer, tags: github, issues, pull-requests, repositories - tavily-research: category=research, tags: research, web-search, tavily, analysis - tavily-search: category=research, tags: web-search, tavily, search - weather: category=utilities, tags: weather, forecast, api Add test to enforce all embedded skills declare category and tags.
- Add icon/category/tags to the SKILL.md format example - Document all frontmatter fields in a table (icon, category, tags required) - Add Icon column to Built-in Skills table, fill in all categories - Fix parser path reference (forge-skills/parser/parser.go)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.forge/files/directory (viaFilesDircontext injection), returning apathfield so other tools likekubectl apply -fcan reference themicon:field in each skill's SKILL.md, so adding a new embedded skill no longer requires touchingforge-clicategoryandtags; tests enforce this for future additionsTest plan
TestFileCreateTool— verifies path field, disk persistence, context-based directory, and fallbackTestEmbeddedRegistry_AllSkillsHaveIcons— ensures every skill declares an iconTestEmbeddedRegistry_AllSkillsHaveCategoryAndTags— ensures every skill has category and tagsTestEmbeddedRegistry_DiscoverAll— verifies all 11 skills are discovered with correct metadatago test ./...andgolangci-lint rundocs/tools.md,docs/runtime.md,docs/skills.md