Skip to content

Add Goose skills support (.goose/skills/)#1149

Closed
github-actions[bot] wants to merge 9 commits intomainfrom
opencode/issue1115-20260221073034
Closed

Add Goose skills support (.goose/skills/)#1149
github-actions[bot] wants to merge 9 commits intomainfrom
opencode/issue1115-20260221073034

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Implementation complete. I've added Goose skills support with the following changes:

  1. src/features/skills/goose-skill.ts - New GooseSkill class that:

    • Generates skills to .goose/skills/<name>/SKILL.md
    • Follows the Agent Skills specification with name and description frontmatter
    • Supports project scope only (no global mode)
    • Targeted by "goose" or "*" in rulesync skill targets
  2. src/features/skills/skills-processor.ts - Registered goose target in:

    • skillsProcessorToolTargetTuple
    • toolSkillFactories map with supportsProject: true, supportsSimulated: false, supportsGlobal: false
  3. src/features/skills/goose-skill.test.ts - 13 tests covering all methods

  4. src/features/skills/skills-processor.test.ts - Updated expected targets to include goose

Closes #1115

github run

@dyoshikawa
Copy link
Copy Markdown
Owner

\oc レビューお願い

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc レビューお願い

@github-actions

This comment has been minimized.

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc #1149 (comment) このレビューコメントの指摘を修正してください。

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions

This comment has been minimized.

dyoshikawa and others added 4 commits February 23, 2026 22:55
@dyoshikawa-claw dyoshikawa-claw force-pushed the opencode/issue1115-20260221073034 branch from 192c329 to a581d27 Compare February 23, 2026 13:55
@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions

This comment has been minimized.

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions

This comment has been minimized.

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions

This comment has been minimized.

@dyoshikawa-claw
Copy link
Copy Markdown
Collaborator

/opencode review

@github-actions

This comment has been minimized.

The Goose skills section was incorrectly nested inside the
.rulesync/skills/*/SKILL.md code block. This fix closes the
rulesync skill code fence before starting the Goose section.
@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions

This comment has been minimized.

@dyoshikawa
Copy link
Copy Markdown
Owner

/oc review

@github-actions
Copy link
Copy Markdown
Contributor Author

PR #1149 Review: Add Goose Skills Support

Code Review Summary ✅

Assessment: APPROVE - Ready to merge

  1. Pattern Adherence ✅ - GooseSkill class follows established patterns (CopilotSkill, ClaudecodeSkill)
  2. Code Quality ✅ - Uses z.looseObject(), join() from node:path, formatError() per coding guidelines
  3. Registration ✅ - Correct metadata in skills-processor.ts: supportsProject: true, supportsSimulated: false, supportsGlobal: false
  4. Test Coverage ✅ - 13 tests covering all methods, follows testing guidelines
  5. Documentation ✅ - Accurate file formats and supported-tools tables
  6. Minor Suggestion - Consider adding test for invalid YAML frontmatter in fromDir

Security Review Summary ✅

Assessment: LOW RISK - APPROVED

  1. Path Traversal ✅ - Protected via AiDir base class (rejects path separators, validates resolved paths)
  2. Input Validation ✅ - Zod schema + name-directory consistency check
  3. Global Mode ✅ - Correctly throws error for unsupported mode
  4. Injection Vulnerabilities ✅ - None found (no shell execution, safe file APIs)
  5. Error Handling ✅ - Proper propagation with context
  6. Optional - Add explicit path traversal test for GooseSkill (low priority)
  7. Optional - Consider path validation for otherFiles in DirFeatureProcessor (defense-in-depth)

PR Number: #1149

Recommendation: Merge ready. All quality checks passed.

github run

@dyoshikawa dyoshikawa closed this Mar 2, 2026
@cm-dyoshikawa cm-dyoshikawa deleted the opencode/issue1115-20260221073034 branch March 3, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(goose): Add skills support for Goose (.goose/skills/)

2 participants