Skip to content

notque/vexjoy-agent / skills/process/workflow

workflow

Verified

Structured work: multi-phase tasks, feature builds, planning, objective loops, hill climbing.

FileKindSize
SKILL.mdskill md13.2 KB
references/adr-template.mdmarkdown9.4 KB
references/agent-upgrade.mdmarkdown12.5 KB
references/article-evaluation-pipeline.mdmarkdown8.9 KB
references/article-evaluation-pipeline/references/report-template.mdmarkdown2.5 KB
references/article-evaluation-pipeline/references/wabi-sabi-classification.mdmarkdown2.4 KB
references/auto-pipeline.mdmarkdown12.5 KB
references/auto-pipeline/references/pipeline-catalog.jsonconfig15.0 KB
references/auto-pipeline/references/pipeline-catalog.mdmarkdown4.3 KB
references/build_dag.pyscript12.5 KB
references/chain-composer.mdmarkdown20.4 KB
references/chain-composer/references/canonical-chains.mdmarkdown13.9 KB
references/comprehensive-review-workflow.jsscript19.3 KB
references/comprehensive-review.mdmarkdown27.8 KB
references/comprehensive-review/references/output-templates.mdmarkdown10.6 KB
references/comprehensive-review/references/wave-0-per-package.mdmarkdown5.6 KB
references/comprehensive-review/references/wave-1-foundation.mdmarkdown10.4 KB
references/comprehensive-review/references/wave-2-deep-dive.mdmarkdown7.3 KB
references/comprehensive-review/references/wave-3-adversarial.mdmarkdown7.4 KB
references/dag-compatibility-matrix.mdmarkdown13.0 KB
references/dag-composition-patterns.mdmarkdown5.0 KB
references/dag-orchestration-advanced.mdmarkdown6.3 KB
references/dag-orchestration-examples.mdmarkdown11.4 KB
references/dag-skill-patterns.mdmarkdown12.5 KB
references/de-ai-pipeline.jsscript14.6 KB
references/de-ai-pipeline.mdmarkdown6.3 KB
references/discover_skills.pyscript12.1 KB
references/do-perspectives.mdmarkdown11.5 KB
references/doc-pipeline.mdmarkdown9.2 KB
references/domain-research.mdmarkdown32.8 KB
references/domain-research/references/task-type-guide.mdmarkdown11.4 KB
references/explore-pipeline.jsscript18.6 KB
references/explore-pipeline.mdmarkdown15.0 KB
references/fan-out-workflow.jsscript9.7 KB
references/fan-out-workflow.pyscript10.4 KB
references/feedback-loop-construction.mdmarkdown14.3 KB
references/fl-design.mdmarkdown9.6 KB
references/fl-error-handling.mdmarkdown8.5 KB
references/fl-implement.mdmarkdown7.6 KB
references/fl-pipeline.mdmarkdown6.0 KB
references/fl-plan.mdmarkdown11.0 KB
references/fl-release.mdmarkdown3.8 KB
references/fl-shared.mdmarkdown3.6 KB
references/fl-validate.mdmarkdown4.5 KB
references/github-profile-rules.mdmarkdown10.5 KB
references/github-profile-rules/references/rule-categories.mdmarkdown6.5 KB
references/hc-SPEC.mdmarkdown3.3 KB
references/hc-domain-playbooks.mdmarkdown15.4 KB
references/hc-ledger.mdmarkdown3.3 KB
references/hc-profiling-tools.mdmarkdown3.7 KB
references/hill-climb.mdmarkdown9.3 KB
references/hook-development-pipeline.mdmarkdown12.9 KB
references/mcp-pipeline-builder.mdmarkdown16.3 KB
references/mcp-pipeline-builder/references/analysis-checklist.mdmarkdown6.2 KB
references/mcp-pipeline-builder/references/design-rules.mdmarkdown7.1 KB
references/mcp-pipeline-builder/references/evaluation-guide.mdmarkdown7.6 KB
references/mcp-pipeline-builder/references/python-scaffold-template.mdmarkdown9.5 KB
references/mcp-pipeline-builder/references/ts-scaffold-template.mdmarkdown1.6 KB
references/mcp-pipeline-builder/scripts/assemble-scaffold.pyscript6.3 KB
references/mcp-pipeline-builder/scripts/register_mcp.pyscript6.9 KB
references/mcp-pipeline-builder/templates/client-cli.ts.tmplother682 B
references/mcp-pipeline-builder/templates/client-http.ts.tmplother1.4 KB
references/mcp-pipeline-builder/templates/index.ts.tmplother1.1 KB
references/mcp-pipeline-builder/templates/package.json.tmplother477 B
references/mcp-pipeline-builder/templates/readme.md.tmplother1.1 KB
references/mcp-pipeline-builder/templates/tools.ts.tmplother3.0 KB
references/mcp-pipeline-builder/templates/ts-scaffold.tmplother556 B
references/mcp-pipeline-builder/templates/tsconfig.json.tmplother408 B
references/ol-SPEC.mdmarkdown2.4 KB
references/ol-state-file.mdmarkdown2.9 KB
references/pipeline-index.jsonconfig23.9 KB
references/pipeline-orchestrator.mdmarkdown15.3 KB
references/pipeline-orchestrator/orchestration-patterns.mdmarkdown8.1 KB
references/pipeline-orchestrator/preferred-patterns.mdmarkdown4.6 KB
references/pipeline-retro.mdmarkdown19.0 KB
references/pipeline-scaffolder.mdmarkdown22.4 KB
references/pipeline-scaffolder/references/architecture-rules.mdmarkdown18.9 KB
references/pipeline-scaffolder/references/generated-skill-template.mdmarkdown1.9 KB
references/pipeline-scaffolder/references/pipeline-spec-format.mdmarkdown36.8 KB
references/pipeline-scaffolder/references/step-menu.mdmarkdown21.5 KB
references/pipeline-scaffolder/scripts/assemble-skill.pyscript6.3 KB
references/pipeline-scaffolder/templates/phases/decision-planning.md.tmplother1.2 KB
references/pipeline-scaffolder/templates/phases/domain-extension.md.tmplother1.5 KB
references/pipeline-scaffolder/templates/phases/generation.md.tmplother427 B
references/pipeline-scaffolder/templates/phases/git-release.md.tmplother1.1 KB
references/pipeline-scaffolder/templates/phases/interaction.md.tmplother965 B
references/pipeline-scaffolder/templates/phases/learning-retro.md.tmplother1.5 KB
references/pipeline-scaffolder/templates/phases/observation.md.tmplother1.3 KB
references/pipeline-scaffolder/templates/phases/research-gathering.md.tmplother1.2 KB
references/pipeline-scaffolder/templates/phases/review.md.tmplother930 B
references/pipeline-scaffolder/templates/phases/safety-guarding.md.tmplother1.7 KB
references/pipeline-scaffolder/templates/phases/structuring.md.tmplother361 B
references/pipeline-scaffolder/templates/phases/synthesis-reporting.md.tmplother1.9 KB
references/pipeline-scaffolder/templates/phases/validation.md.tmplother1.1 KB
references/pipeline-scaffolder/templates/skill-template.md.tmplother12.0 KB
references/pipeline-test-runner.mdmarkdown16.7 KB
references/pl-ambiguity-triage.mdmarkdown2.7 KB
references/pl-check-dimensions.mdmarkdown7.4 KB
references/pl-check-errors.mdmarkdown824 B
references/pl-check-verdict-format.mdmarkdown3.2 KB
references/pl-check.mdmarkdown6.5 KB
references/pl-context-boundary.mdmarkdown1.6 KB
references/pl-depth-first-interview.mdmarkdown11.6 KB
references/pl-empirical-prototype.mdmarkdown825 B
references/pl-executor-ready-plan-template.mdmarkdown7.7 KB
references/pl-human-source-elicitation.mdmarkdown1.5 KB
references/pl-manage.mdmarkdown5.1 KB
references/pl-pause-confirm-and-errors.mdmarkdown2.1 KB
references/pl-pause-extract-decisions.mdmarkdown3.0 KB
references/pl-pause-gather-steps.mdmarkdown2.3 KB
references/pl-pause-synthesize-fields.mdmarkdown2.3 KB
references/pl-pause-write-templates.mdmarkdown5.3 KB
references/pl-pause.mdmarkdown6.5 KB
references/pl-plan-files.mdmarkdown8.4 KB
references/pl-pre-plan.mdmarkdown11.6 KB
references/pl-resume.mdmarkdown12.3 KB
references/pl-spec.mdmarkdown5.2 KB
references/pr-fix-loop.mdmarkdown10.3 KB
references/pr-fix-loop/references/message-formats.mdmarkdown1.6 KB
references/pr-fix-loop/references/publish.mdmarkdown5.4 KB
references/pr-fix-loop/references/review-checklist.mdmarkdown3.4 KB
references/pr-pipeline/references/pr-templates.mdmarkdown5.4 KB
references/pr-pipeline/references/preflight-checklist.mdmarkdown2.8 KB
references/pr-pipeline/references/retro-adr-phases.mdmarkdown2.7 KB
references/pr-pipeline/references/review-fix-loop.mdmarkdown2.0 KB
references/project-coordinator.mdmarkdown6.5 KB
references/project-coordinator/agent-capability-map.mdmarkdown5.4 KB
references/project-coordinator/communication-protocols.mdmarkdown4.5 KB
references/project-coordinator/coordination-playbook.mdmarkdown3.7 KB
references/project-coordinator/death-loop-prevention.mdmarkdown3.6 KB
references/project-coordinator/error-catalog.mdmarkdown2.7 KB
references/project-coordinator/parallel-execution-patterns.mdmarkdown2.8 KB
references/project-coordinator/preferred-patterns.mdmarkdown5.9 KB
references/project-coordinator/todowrite-integration.mdmarkdown5.6 KB
references/research-pipeline.jsscript15.2 KB
references/skill-creation-pipeline.mdmarkdown17.1 KB
references/system-upgrade.mdmarkdown12.8 KB
references/systematic-debugging.mdmarkdown11.0 KB
references/systematic-refactoring.mdmarkdown11.4 KB
references/toolkit-improvement.jsscript39.0 KB
references/toolkit-improvement.mdmarkdown20.5 KB
references/toolkit-improvement/references/adr-template.mdmarkdown10.5 KB
references/toolkit-improvement/references/agent-roster.mdmarkdown15.8 KB
references/workflow-helpers.jsscript12.1 KB
references/workflow-orchestrator.mdmarkdown20.8 KB
references/workflow-orchestrator/references/plan-template.mdmarkdown1.3 KB
references/workflow-orchestrator/references/task-patterns.mdmarkdown23.3 KB
references/workflow-orchestrator/scripts/assemble-plan.pyscript6.9 KB
references/workflow-orchestrator/scripts/validate.pyscript14.4 KB
references/workflow-orchestrator/templates/plan-template.json.tmplother904 B

references/mcp-pipeline-builder/references/python-scaffold-template.md

View on GitHub
# Python FastMCP Server Scaffold Template

Reference for Phase 3 GENERATE when `--python` flag is set. Use these patterns for Python MCP servers.

---

## When to Use Python Mode

Generate a Python FastMCP server (instead of TypeScript) when:
1. The user explicitly passes `--python`, AND
2. The target repo is a Python project (has `pyproject.toml`, `setup.py`, or `requirements.txt`)

Python mode is preferred when the target exports an installable package that can be imported directly (`--import` flag). Otherwise, TypeScript is simpler and more type-safe.

---

## Directory Structure

```
{service}-mcp-server/
  pyproject.toml
  src/
    main.py       ← @mcp.tool decorators, mcp.run()
    client.py     ← Shared client class (HTTP or subprocess)
  README.md
```

---

## `pyproject.toml` Template

```toml
[project]
name = "{service}-mcp-server"
version = "0.1.0"
description = "MCP server for {Service Name}"
requires-python = ">=3.11"
dependencies = [
    "fastmcp>=0.1.0",
    "httpx>=0.27.0",        # For HTTP client; remove if not needed
    "pydantic>=2.0.0",      # Included transitively by fastmcp
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src"]
```

---

## `src/main.py` Template

```python
"""
{Service Name} MCP server.

Provides tools for {one-line purpose}.

Environment variables:
    SERVICE_API_KEY: Required. API key for authenticating with {Service Name}.
"""

import os
import json
from typing import Annotated

import fastmcp
from fastmcp import FastMCP
from pydantic import BaseModel, Field

from .client import ServiceClient

# Validate required env vars at startup
_API_KEY = os.environ.get("SERVICE_API_KEY")
if not _API_KEY:
    raise ValueError(
        "SERVICE_API_KEY environment variable is required. "
        "Set it before starting the server."
    )

# Initialize FastMCP
mcp = FastMCP("{service}-mcp-server")

# Initialize shared client
_client = ServiceClient(api_key=_API_KEY)

# --- Tool parameter models (Pydantic v2) ---

class GetIssueParams(BaseModel):
    owner: str = Field(description="Repository owner or organization name")
    repo: str = Field(description="Repository name")
    issue_number: int = Field(description="Issue number", gt=0)

class ListIssuesParams(BaseModel):
    owner: str = Field(description="Repository owner or organization name")
    repo: str = Field(description="Repository name")
    state: str = Field(default="open", description="Filter by state: open, closed, all")
    limit: int = Field(default=20, ge=1, le=100, description="Maximum results. Default: 20")

# --- Tools ---

@mcp.tool(
    description="Get a single issue by number. Returns title, description, state, labels, and assignees."
)
def service_get_issue(params: GetIssueParams) -> str:
    """Get a single issue with full context."""
    try:
        issue = _client.get_issue(params.owner, params.repo, params.issue_number)
        return json.dumps(issue, indent=2)
    except Exception as e:
        # Raise with a clear message — FastMCP converts this to an MCP error response
        raise ValueError(f"Error fetching issue {params.issue_number}: {e}") from e

@mcp.tool(
    description="List issues with optional state filter. Returns a JSON array of matching issues."
)
def service_list_issues(params: ListIssuesParams) -> str:
    """List issues with filters."""
    try:
        issues = _client.list_issues(params.owner, params.repo, params.state, params.limit)
        return json.dumps(issues, indent=2)
    except Exception as e:
        raise ValueError(f"Error listing issues: {e}") from e

# --- Entry point ---

if __name__ == "__main__":
    mcp.run(transport="stdio")
```

---

## `src/client.py` Template

The shared client class. Adapt to the target service's protocol.

### HTTP Client Pattern

```python
"""Shared HTTP client for {Service Name} API."""

import httpx
from typing import Any

class ServiceClient:
    def __init__(self, api_key: str, base_url: str = "https://api.example.com"):
        self._api_key = api_key
        self._base_url = base_url.rstrip("/")

    def _get(self, path: str, params: dict[str, str] | None = None) -> Any:
        """Make an authenticated GET request."""
        with httpx.Client() as client:
            response = client.get(
                f"{self._base_url}{path}",
                params=params,
                headers={
                    "Authorization": f"Bearer {self._api_key}",
                    "Accept": "application/json",
                },
                timeout=30.0,
            )
            response.raise_for_status()
            return response.json()

    def get_issue(self, owner: str, repo: str, number: int) -> dict:
        return self._get(f"/repos/{owner}/{repo}/issues/{number}")

    def list_issues(self, owner: str, repo: str, state: str, limit: int) -> list:
        return self._get(
            f"/repos/{owner}/{repo}/issues",
            params={"state": state, "per_page": str(limit)},
        )
```

### Subprocess/CLI Client Pattern

```python
"""Shared subprocess client for {Service Name} CLI."""

import subprocess
import json
import os

class CliClient:
    def __init__(self, executable: str, env: dict[str, str] | None = None):
        self._executable = executable
        self._env = {**os.environ, **(env or {})}

    def run(self, args: list[str]) -> str:
        """Run CLI command and return stdout as string."""
        result = subprocess.run(
            [self._executable, *args],
            capture_output=True,
            text=True,
            env=self._env,
            timeout=30,
        )
        if result.returncode != 0:
            raise RuntimeError(
                f"Command failed (exit {result.returncode}): {result.stderr}"
            )
        return result.stdout

    def run_json(self, args: list[str]) -> Any:
        """Run CLI command expecting JSON output."""
        output = self.run(args)
        return json.loads(output)
```

### Import Mode Pattern (only with `--import` flag)

When the target is an installable Python package:

```python
"""Direct import client for {service} Python library."""

# Install the target: pip install {service-package}
from {service_package} import SomeClient, Config

class ImportClient:
    def __init__(self, api_key: str):
        self._client = SomeClient(Config(api_key=api_key))

    def get_thing(self, thing_id: str) -> dict:
        result = self._client.things.get(thing_id)
        # Convert SDK objects to plain dicts for JSON serialization
        return result.model_dump() if hasattr(result, "model_dump") else vars(result)
```

---

## Key Differences from TypeScript

| Aspect | TypeScript | Python FastMCP |
|--------|-----------|----------------|
| Tool registration | `server.tool(name, desc, zodSchema, annotations, handler)` | `@mcp.tool(description=...)` decorator on function |
| Parameter validation | Zod schema (compile-time) | Pydantic v2 model (runtime) |
| Error handling | Return `{ content: [...], isError: true }` | `raise ValueError("message")` |
| Startup | `await server.connect(transport)` | `mcp.run(transport="stdio")` |
| Logging | Use `console.error()` (not `console.log()`) | Use `print(..., file=sys.stderr)` |
| Auth check | `if (!API_KEY) throw new Error(...)` | `if not _API_KEY: raise ValueError(...)` |

---

## Error Handling Pattern

In Python FastMCP, raise exceptions with clear messages. FastMCP converts them to MCP error responses automatically.

```python
@mcp.tool(description="...")
def my_tool(params: MyParams) -> str:
    try:
        result = _client.do_something(params.thing_id)
        return json.dumps(result, indent=2)
    except httpx.HTTPStatusError as e:
        raise ValueError(f"API error {e.response.status_code}: {e.response.text}") from e
    except Exception as e:
        raise ValueError(f"Unexpected error: {e}") from e
```

**Preferred behavior**: Raise explicit exceptions instead of catching everything silently or returning empty strings. The model cannot act on silent failures.

---

## Environment Variable Pattern

```python
import os

def _require_env(name: str) -> str:
    """Get a required environment variable or raise at startup."""
    value = os.environ.get(name)
    if not value:
        raise ValueError(
            f"{name} environment variable is required. "
            f"Set it before starting the server: export {name}=your_value"
        )
    return value

# At module level (checked at startup, not at first tool call)
API_KEY = _require_env("SERVICE_API_KEY")
```

---

## `README.md` Template

```markdown
# {Service Name} MCP Server

MCP server for {Service Name}. Provides Claude Code with tools to {one-line purpose}.

## Tools

| Tool | Description |
|------|-------------|
| `service_get_thing` | Get a single thing by ID |
| `service_list_things` | List things with optional filters |

## Setup

### Prerequisites
- Python >= 3.11
- {Service Name} API key

### Install

\`\`\`bash
pip install -e .
\`\`\`

### Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `SERVICE_API_KEY` | Yes | {Service Name} API key from {where to get it} |

### Register with Claude Code

\`\`\`bash
python3 skills/process/workflow/references/mcp-pipeline-builder/scripts/register_mcp.py \
  --name {service}-mcp-server \
  --command python3 \
  --args $(pwd)/src/main.py \
  --env SERVICE_API_KEY=your_key_here
\`\`\`

Or add manually to `~/.claude.json`:

\`\`\`json
{
  "mcpServers": {
    "{service}-mcp-server": {
      "command": "python3",
      "args": ["/absolute/path/to/src/main.py"],
      "env": {
        "SERVICE_API_KEY": "your_key_here"
      }
    }
  }
}
\`\`\`
```
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall