xiaohongshu
xiaohongshu
Captures CLI configuration and hooks system documentation for the new platform. Use when starting platform integration.
Full skill instructions
Step 1/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.
Goal: Captures CLI configuration and hooks system documentation for the new platform. Use when starting platform integration.
Capture comprehensive documentation for the new AI platform's CLI configuration and hooks system, creating a local reference that will guide the implementation phases.
Research the target platform's official documentation and create two focused documentation files that will serve as the foundation for implementing platform support in DeepWork.
Identify the platform's documentation sources
Gather CLI configuration documentation
Gather hooks system documentation
stop_hooks, pre_hooks, post_hooks, validation hooksCreate the documentation files
doc/platforms/<platform_name>/Located at: doc/platforms/<platform_name>/cli_configuration.md
Structure:
<!--
Last Updated: YYYY-MM-DD
Source: [URL where this documentation was obtained]
-->
# <Platform Name> CLI Configuration
## Overview
[Brief description of the platform and its CLI/agent system]
## Configuration Files
[Document where configuration lives and its format]
### File Locations
- [Location 1]: [Purpose]
- [Location 2]: [Purpose]
### Configuration Format
[Show the configuration file format with examples]
## Custom Commands/Skills
[Document how custom commands are defined]
### Command Location
[Where command files are stored]
### Command File Format
[The format of command files - markdown, YAML, etc.]
### Metadata/Frontmatter
[What metadata fields are supported in command files]
```[format]
[Example of a minimal command file]
[How the platform discovers and loads commands]
[Any unique features relevant to command configuration]
### hooks_system.md
Located at: `doc/platforms/<platform_name>/hooks_system.md`
**Structure**:
```markdown
<!--
Last Updated: YYYY-MM-DD
Source: [URL where this documentation was obtained]
-->
# <Platform Name> Hooks System (Command Definitions)
## Overview
[Brief description of hooks available for command definitions]
**Important**: This document covers ONLY hooks available within slash command/skill definitions, not general CLI hooks.
## Available Hooks
### [Hook Name 1]
**Purpose**: [What this hook does]
**Syntax**:
```yaml
[hook_name]:
- [configuration]
Example:
[Complete example of using this hook]
Behavior: [When and how this hook executes]
[Repeat for each available hook]
[Document the order in which hooks execute, if multiple are supported]
| Feature | <Platform> | Claude Code | Other |
|---|---|---|---|
| [Feature 1] | [Support] | [Support] | [Support] |
[Any limitations or caveats about the hooks system]
## Quality Criteria
- Both files exist in `doc/platforms/<platform_name>/`
- Each file has a header comment with:
- Last updated date (YYYY-MM-DD format)
- Source URL where documentation was obtained
- `cli_configuration.md` comprehensively covers:
- Configuration file locations and format
- Custom command file format and location
- Command discovery mechanism
- `hooks_system.md` comprehensively covers:
- All hooks available for slash command definitions
- Syntax and examples for each hook
- NOT general CLI hooks (only command-level hooks)
- Documentation is detailed enough to implement the platform adapter
- No extraneous topics (only CLI config and command hooks)
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
## Context
This is the foundation step for adding a new platform to DeepWork. The documentation you capture here will be referenced throughout the implementation process:
- CLI configuration informs how to generate command files
- Hooks documentation determines what features the adapter needs to support
- This documentation becomes a permanent reference in `doc/platforms/`
Take time to be thorough - incomplete documentation will slow down subsequent steps.
## Tips
- Use the platform's official documentation as the primary source
- If documentation is sparse, check GitHub repos, community guides, or changelog entries
- When in doubt about whether something is a "command hook" vs "CLI hook", err on the side of inclusion and note the ambiguity
- Include code examples from the official docs where available
### Job Context
A workflow for adding support for a new AI platform (like Cursor, Windsurf, etc.) to DeepWork.
The **integrate** workflow guides you through four phases:
1. **Research**: Capture the platform's CLI configuration and hooks system documentation
2. **Add Capabilities**: Update the job schema and adapters with any new hook events
3. **Implement**: Create the platform adapter, templates, tests (100% coverage), and README updates
4. **Verify**: Ensure installation works correctly and produces expected files
The workflow ensures consistency across all supported platforms and maintains
comprehensive test coverage for new functionality.
**Important Notes**:
- Only hooks available on slash command definitions should be captured
- Each existing adapter must be updated when new hooks are added (typically with null values)
- Tests must achieve 100% coverage for any new functionality
- Installation verification confirms the platform integrates correctly with existing jobs
## Required Inputs
**User Parameters** - Gather from user before starting:
- **platform_name**: Clear identifier of the platform (e.g., 'cursor', 'windsurf-editor', 'github-copilot-chat')
## Work Branch
Use branch format: `deepwork/add_platform-[instance]-YYYYMMDD`
- If on a matching work branch: continue using it
- If on main/master: create new branch with `git checkout -b deepwork/add_platform-[instance]-$(date +%Y%m%d)`
## Outputs
**Required outputs**:
- `cli_configuration.md`
- `hooks_system.md`
## Guardrails
- Do NOT skip prerequisite verification if this step has dependencies
- Do NOT produce partial outputs; complete all required outputs before finishing
- Do NOT proceed without required inputs; ask the user if any are missing
- Do NOT modify files outside the scope of this step's defined outputs
## On Completion
1. Verify outputs are created
2. Inform user: "integrate step 1/4 complete, outputs: cli_configuration.md, hooks_system.md"
3. **Continue workflow**: Use Skill tool to invoke `/add_platform.add_capabilities`
---
**Reference files**: `.deepwork/jobs/add_platform/job.yml`, `.deepwork/jobs/add_platform/steps/research.md`
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience