feat(trellis): enhance bundled skills and workflow integration

- Updated bundled skills documentation to clarify the structure and usage across all platforms, ensuring consistency in skill root paths.
- Introduced a new `inject-spec-context.py` hook for path-scoped spec context injection, improving the relevance of injected specs during file interactions.
- Enhanced existing hooks to support workflow resolution, allowing for dynamic selection of workflows based on task context.
- Added a command to manage workflow selections for active tasks, enabling better task management and workflow adherence.
- Updated configuration options for spec injection, including character limits and refresh windows, to optimize performance and usability.
This commit is contained in:
yuxuanhui
2026-09-07 11:23:15 +08:00
parent ca3bd7a4b1
commit e567e5f717
23 changed files with 2525 additions and 130 deletions
+25
View File
@@ -1,5 +1,17 @@
{
"hooks": {
"SessionStart": [
{
"matcher": "^(?:clear|compact)$",
"hooks": [
{
"type": "command",
"command": "python3 -X utf8 .codex/hooks/inject-spec-context.py",
"timeout": 15
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
@@ -22,6 +34,19 @@
}
]
}
],
"PreToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "python3 -X utf8 .codex/hooks/inject-spec-context.py",
"timeout": 15,
"additionalContextLimit": 0
}
]
}
]
}
}