feat: Add !\command\`` dynamic context syntax in skills #7770

Open
opened 2026-02-16 18:08:11 -05:00 by yindo · 2 comments
Owner

Originally created by @sambostock on GitHub (Jan 27, 2026).

Originally assigned to: @thdxr on GitHub.

Summary

Support the !command`` syntax in skills to inject dynamic content at load time, compatible with Claude Code's implementation.

Example

---
name: project-context
description: Provides current project context
---

Current branch: !`git branch --show-current`
Current date: !`date`

When loaded, commands are executed and output replaces the placeholder.

Considerations

  • Request bash permission for each command
  • Timeout and abort signal support
  • Output truncation for large outputs
Originally created by @sambostock on GitHub (Jan 27, 2026). Originally assigned to: @thdxr on GitHub. ### Summary Support the `!`command`` syntax in skills to inject dynamic content at load time, compatible with [Claude Code's implementation](https://docs.anthropic.com/en/docs/claude-code/skills#inject-dynamic-context). ### Example ```markdown --- name: project-context description: Provides current project context --- Current branch: !`git branch --show-current` Current date: !`date` ``` When loaded, commands are executed and output replaces the placeholder. ### Considerations - Request bash permission for each command - Timeout and abort signal support - Output truncation for large outputs
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5082: Allow shell commands in the frontmatter

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #5082: Allow shell commands in the frontmatter Feel free to ignore if none of these address your specific case.
Author
Owner

@LuisUrrutia commented on GitHub (Feb 4, 2026):

I was just looking into this, since seems like Claude got rid of the concept of commands and now skills and commands are the same for them.

@LuisUrrutia commented on GitHub (Feb 4, 2026): I was just looking into this, since seems like Claude got rid of the concept of `commands` and now skills and commands are the same for them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7770