add_platform.add_capabilities
БесплатноБез исполняемых скриптовНе проверенUpdates job schema and adapters with any new hook events the platform supports. Use after research to extend DeepWork's hook system.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
add_platform.add_capabilities
Step 2/4 in integrate workflow
Full workflow to integrate a new AI platform into DeepWork
Adds a new AI platform to DeepWork with adapter, templates, and tests. Use when integrating Cursor, Windsurf, or other AI coding tools.
Prerequisites (Verify First)
Before proceeding, confirm these steps are complete:
/add_platform.research
Instructions
Goal: Updates job schema and adapters with any new hook events the platform supports. Use after research to extend DeepWork's hook system.
Add Hook Capabilities
Objective
Update the DeepWork job schema and platform adapters to support any new hook events that the new platform provides for slash command definitions.
Task
Analyze the hooks documentation from the research step and update the codebase to support any new hook capabilities, ensuring consistency across all existing adapters.
Prerequisites
Read the hooks documentation created in the previous step:
doc/platforms/<platform_name>/hooks_system.md
Also review the existing schema and adapters:
src/deepwork/schemas/job_schema.pysrc/deepwork/adapters.py
Process
Analyze the new platform's hooks
- Read
doc/platforms/<platform_name>/hooks_system.md - List all hooks available for slash command definitions
- Compare with hooks already in
job_schema.py - Identify any NEW hooks not currently supported
- Read
Determine if schema changes are needed
- If the platform has hooks that DeepWork doesn't currently support, add them
- If all hooks are already supported, document this finding
- Remember: Only add hooks that are available on slash command definitions
Update job_schema.py (if needed)
- Add new hook fields to the step schema
- Follow existing patterns for hook definitions
- Add appropriate type hints and documentation
- Example addition:
# New hook from <platform> new_hook_name: Optional[List[HookConfig]] = None
Update all existing adapters
- Open
src/deepwork/adapters.py - For EACH existing adapter class:
- Add the new hook field (set to
Noneif not supported) - This maintains consistency across all adapters
- Add the new hook field (set to
- Document why each adapter does or doesn't support the hook
- Open
Validate the changes
- Run Python syntax check:
python -m py_compile src/deepwork/schemas/job_schema.py - Run Python syntax check:
python -m py_compile src/deepwork/adapters.py - Ensure no import errors
- Run Python syntax check:
Document the decision
- If no new hooks were added, add a comment explaining why
- If new hooks were added, ensure they're documented in the schema
Output Format
job_schema.py
Location: src/deepwork/schemas/job_schema.py
If new hooks are added:
@dataclass
class StepDefinition:
# ... existing fields ...
# New hook from <platform_name> - [description of what it does]
new_hook_name: Optional[List[HookConfig]] = None
adapters.py
Location: src/deepwork/adapters.py
For each existing adapter, add the new hook field:
class ExistingPlatformAdapter(PlatformAdapter):
# ... existing code ...
def get_hook_support(self) -> dict:
return {
# ... existing hooks ...
"new_hook_name": None, # Not supported by this platform
}
Or if no changes are needed, add a documentation comment:
# NOTE: <platform_name> hooks reviewed on YYYY-MM-DD
# No new hooks to add - all <platform_name> command hooks are already
# supported by the existing schema (stop_hooks covers their validation pattern)
Quality Criteria
- Hooks documentation from research step has been reviewed
- If new hooks exist:
- Added to
src/deepwork/schemas/job_schema.pywith proper typing - ALL existing adapters updated in
src/deepwork/adapters.py - Each adapter indicates support level (implemented, None, or partial)
- Added to
- If no new hooks needed:
- Decision documented with a comment explaining the analysis
- Only hooks available on slash command definitions are considered
job_schema.pyhas no syntax errors (verified with py_compile)adapters.pyhas no syntax errors (verified with py_compile)- All adapters have consistent hook fields (same fields across all adapters)
- When all criteria are met, include
<promise>✓ Quality Criteria Met</promise>in your response
Context
DeepWork supports multiple AI platforms, and each platform may have different capabilities for hooks within command definitions. The schema defines what hooks CAN exist, while adapters define what each platform actually SUPPORTS.
This separation allows:
- Job definitions to use any hook (the schema is the superset)
- Platform-specific generation to only use supported hooks (adapters filter)
- Future platforms to add new hooks without breaking existing ones
Maintaining consistency is critical - all adapters must have the same hook fields, even if they don'
Установить add_platform.add_capabilities в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл add_platform.add_capabilities?
Updates job schema and adapters with any new hook events the platform supports. Use after research to extend DeepWork's hook system.
Как установить скилл add_platform.add_capabilities?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add_platform.add_capabilities запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub