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/discover_skills.py

View on GitHub
#!/usr/bin/env python3
"""
Skill discovery script for skill-composer.
Scans available skills and builds metadata index.
"""

import argparse
import json
import re
import sys
from pathlib import Path
from typing import Any, Dict, List


class SkillDiscoveryError(Exception):
    """Skill discovery related errors."""

    pass


def extract_yaml_frontmatter(skill_md_path: Path) -> Dict[str, str]:
    """Extract YAML frontmatter from SKILL.md file."""
    with open(skill_md_path, "r", encoding="utf-8") as f:
        content = f.read()

    # Check for YAML frontmatter
    if not content.startswith("---"):
        raise SkillDiscoveryError(f"No YAML frontmatter in {skill_md_path}")

    # Extract frontmatter
    parts = content.split("---", 2)
    if len(parts) < 3:
        raise SkillDiscoveryError(f"Malformed YAML frontmatter in {skill_md_path}")

    frontmatter = parts[1].strip()
    _ = parts[2].strip()  # Body content not used in discovery

    # Parse YAML manually (simple key: value parsing)
    yaml_data = {}
    current_key = None
    current_value = []

    for line in frontmatter.split("\n"):
        # Check if this is a key: value line
        if ":" in line and not line.startswith(" "):
            # Save previous key if exists
            if current_key:
                yaml_data[current_key] = "\n".join(current_value).strip()

            # Parse new key
            key, value = line.split(":", 1)
            current_key = key.strip()
            current_value = [value.strip()] if value.strip() else []
        elif current_key and line.strip():
            # Multi-line value continuation
            current_value.append(line.strip())

    # Save last key
    if current_key:
        yaml_data[current_key] = "\n".join(current_value).strip()

    return yaml_data


def extract_skill_metadata(skill_md_path: Path) -> Dict[str, Any]:
    """Extract comprehensive metadata from SKILL.md."""
    yaml_data = extract_yaml_frontmatter(skill_md_path)

    # Read full content for additional analysis
    with open(skill_md_path, "r", encoding="utf-8") as f:
        content = f.read()

    # Extract operator context if present
    operator_context = extract_operator_context(content)

    # Infer input/output types from content
    inputs, outputs = infer_io_types(content)

    # Detect dependencies on other skills
    dependencies = detect_skill_dependencies(content)

    metadata = {
        "name": yaml_data.get("name", ""),
        "description": yaml_data.get("description", ""),
        "version": yaml_data.get("version", "1.0.0"),
        "file_path": str(skill_md_path),
        "inputs": inputs,
        "outputs": outputs,
        "dependencies": dependencies,
        "operator_context": operator_context,
        "has_scripts": (skill_md_path.parent / "scripts").exists(),
        "has_references": (skill_md_path.parent / "references").exists(),
    }

    return metadata


def extract_operator_context(content: str) -> Dict[str, List[str]]:
    """Extract operator context behaviors from content."""
    context = {"hardcoded": [], "default_on": [], "optional": []}

    # Find operator context section
    operator_match = re.search(r"## Operator Context.*?(?=\n## |\Z)", content, re.DOTALL)

    if not operator_match:
        return context

    operator_section = operator_match.group(0)

    # Extract hardcoded behaviors
    hardcoded_match = re.search(r"### Hardcoded Behaviors.*?(?=\n### |\Z)", operator_section, re.DOTALL)
    if hardcoded_match:
        context["hardcoded"] = extract_bullet_points(hardcoded_match.group(0))

    # Extract default behaviors
    default_match = re.search(r"### Default Behaviors.*?(?=\n### |\Z)", operator_section, re.DOTALL)
    if default_match:
        context["default_on"] = extract_bullet_points(default_match.group(0))

    # Extract optional behaviors
    optional_match = re.search(r"### Optional Behaviors.*?(?=\n### |\Z)", operator_section, re.DOTALL)
    if optional_match:
        context["optional"] = extract_bullet_points(optional_match.group(0))

    return context


def extract_bullet_points(text: str) -> List[str]:
    """Extract bullet points from text."""
    bullets = []
    for line in text.split("\n"):
        line = line.strip()
        if line.startswith("- **"):
            # Extract the bold part as the key point
            match = re.match(r"- \*\*([^*]+)\*\*", line)
            if match:
                bullets.append(match.group(1))
    return bullets


def infer_io_types(content: str) -> tuple[List[str], List[str]]:
    """Infer input and output types from skill content."""
    inputs = []
    outputs = []

    # Look for common input patterns
    if "file_path" in content.lower() or "--input" in content:
        inputs.append("file_path")
    if "directory" in content.lower() or "--dir" in content:
        inputs.append("directory")
    if "config" in content.lower() or "--config" in content:
        inputs.append("configuration")
    if "repository" in content.lower() or "repo" in content:
        inputs.append("repository")

    # Look for common output patterns
    if "report" in content.lower() or "generate report" in content:
        outputs.append("report")
    if "json" in content.lower() or ".json" in content:
        outputs.append("json_data")
    if "markdown" in content.lower() or ".md" in content:
        outputs.append("markdown")
    if "validation" in content.lower() or "validate" in content:
        outputs.append("validation_result")
    if "test" in content.lower() or "tests" in content:
        outputs.append("test_results")

    return inputs, outputs


def detect_skill_dependencies(content: str) -> List[str]:
    """Detect references to other skills in content."""
    dependencies = []

    # Common skill reference patterns
    skill_patterns = [
        r"skill:\s*([a-z-]+)",
        r"invoke.*?([a-z-]+)\s+skill",
        r"use.*?([a-z-]+)\s+skill",
        r"after.*?([a-z-]+)\s+skill",
    ]

    for pattern in skill_patterns:
        matches = re.findall(pattern, content, re.IGNORECASE)
        dependencies.extend(matches)

    # Remove duplicates and self-references
    dependencies = list(set(dependencies))

    # Filter out common false positives
    false_positives = ["the", "a", "this", "that", "other", "new", "main"]
    dependencies = [d for d in dependencies if d not in false_positives]

    return dependencies


def discover_skills(skills_dir: Path) -> List[Dict[str, Any]]:
    """Discover all skills in directory."""
    skills = []
    errors = []

    # Find all SKILL.md files
    skill_files = list(skills_dir.glob("*/SKILL.md"))

    print(f"Discovering skills in {skills_dir}...", file=sys.stderr)
    print(f"Found {len(skill_files)} potential skills", file=sys.stderr)

    for skill_file in skill_files:
        try:
            metadata = extract_skill_metadata(skill_file)
            skills.append(metadata)
            print(f"  ✓ {metadata['name']}", file=sys.stderr)
        except Exception as e:
            error_msg = f"  ✗ {skill_file.parent.name}: {e}"
            errors.append(error_msg)
            print(error_msg, file=sys.stderr)

    print(f"\nDiscovered {len(skills)} skills successfully", file=sys.stderr)
    if errors:
        print(f"Encountered {len(errors)} errors", file=sys.stderr)

    return skills


def build_skill_index(skills: List[Dict[str, Any]]) -> Dict[str, Any]:
    """Build comprehensive skill index."""
    index = {
        "total_skills": len(skills),
        "skills": skills,
        "skill_map": {skill["name"]: skill for skill in skills},
        "categories": categorize_skills(skills),
        "dependency_graph": build_dependency_graph(skills),
    }

    return index


def categorize_skills(skills: List[Dict[str, Any]]) -> Dict[str, List[str]]:
    """Categorize skills by domain."""
    categories = {
        "testing": [],
        "quality": [],
        "documentation": [],
        "workflow": [],
        "code-analysis": [],
        "debugging": [],
        "other": [],
    }

    for skill in skills:
        name = skill["name"]
        desc = skill["description"].lower()

        if any(word in desc for word in ["test", "tdd", "red-green-refactor"]):
            categories["testing"].append(name)
        elif any(word in desc for word in ["quality", "lint", "style", "validation"]):
            categories["quality"].append(name)
        elif any(word in desc for word in ["comment", "documentation", "doc"]):
            categories["documentation"].append(name)
        elif any(word in desc for word in ["workflow", "orchestrat", "task"]):
            categories["workflow"].append(name)
        elif any(word in desc for word in ["analyz", "pattern", "extract", "mine"]):
            categories["code-analysis"].append(name)
        elif any(word in desc for word in ["debug", "fix", "diagnos"]):
            categories["debugging"].append(name)
        else:
            categories["other"].append(name)

    return categories


def build_dependency_graph(skills: List[Dict[str, Any]]) -> Dict[str, List[str]]:
    """Build dependency graph from skill dependencies."""
    graph = {}

    for skill in skills:
        skill_name = skill["name"]
        dependencies = skill.get("dependencies", [])

        # Only include dependencies that reference known skills
        valid_deps = [dep for dep in dependencies if any(s["name"] == dep for s in skills)]

        if valid_deps:
            graph[skill_name] = valid_deps

    return graph


def main():
    """Main entry point."""
    parser = argparse.ArgumentParser(description="Discover skills and build metadata index")
    parser.add_argument("--skills-dir", type=Path, required=True, help="Directory containing skills")
    parser.add_argument("--output", type=Path, required=True, help="Output JSON file path")
    parser.add_argument("--verbose", action="store_true", help="Enable verbose output")

    args = parser.parse_args()

    try:
        # Validate skills directory
        if not args.skills_dir.exists():
            raise SkillDiscoveryError(f"Skills directory not found: {args.skills_dir}")

        if not args.skills_dir.is_dir():
            raise SkillDiscoveryError(f"Not a directory: {args.skills_dir}")

        # Discover skills
        skills = discover_skills(args.skills_dir)

        if not skills:
            raise SkillDiscoveryError("No skills found")

        # Build index
        print("\nBuilding skill index...", file=sys.stderr)
        index = build_skill_index(skills)

        # Write output
        args.output.parent.mkdir(parents=True, exist_ok=True)
        with open(args.output, "w", encoding="utf-8") as f:
            json.dump(index, f, indent=2, ensure_ascii=False)

        print(f"Index written to: {args.output}", file=sys.stderr)

        # Print summary
        print("\n" + "=" * 60, file=sys.stderr)
        print("SKILL INDEX SUMMARY", file=sys.stderr)
        print("=" * 60, file=sys.stderr)
        print(f"Total skills: {index['total_skills']}", file=sys.stderr)
        print("\nCategories:", file=sys.stderr)
        for category, skill_list in index["categories"].items():
            if skill_list:
                print(f"  {category}: {len(skill_list)}", file=sys.stderr)
        print(
            f"\nSkills with dependencies: {len(index['dependency_graph'])}",
            file=sys.stderr,
        )
        print("=" * 60, file=sys.stderr)

        # Output success to stdout
        print(
            json.dumps(
                {
                    "status": "success",
                    "total_skills": index["total_skills"],
                    "output_file": str(args.output),
                },
                indent=2,
            )
        )

    except SkillDiscoveryError as e:
        print(
            json.dumps(
                {
                    "status": "error",
                    "error_type": "SkillDiscoveryError",
                    "message": str(e),
                },
                indent=2,
            ),
            file=sys.stderr,
        )
        sys.exit(1)
    except Exception as e:
        print(
            json.dumps(
                {"status": "error", "error_type": type(e).__name__, "message": str(e)},
                indent=2,
            ),
            file=sys.stderr,
        )
        sys.exit(2)


if __name__ == "__main__":
    main()
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