[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NVNXK38VH5VJSZ856G0SEG":3,"skill-same:01M6NVNXK38VH5VJSZ856G0SEG":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6NVNXK38VH5VJSZ856G0SEG","mcp-chaining",null,"Research-to-implement pipeline chaining 5 MCP tools with graceful degradation","rubicanjr\u002FFinCognis","rubicanjr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234912519?v=4","01M6NT156NND8J474G34SB3923","Rubi","01M6NT15B70RWXE1N3YV0BZY8A",0,"MIT","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-chaining\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"MCP","chaining","mcp chaining","implement","research","mcp tools","pipeline","Tools","Bash","read","false","degradation","with","graceful degradation","2026-11-10 10:12:30",false,"---\nname: mcp-chaining\ndescription: Research-to-implement pipeline chaining 5 MCP tools with graceful degradation\nallowed-tools: [Bash, Read]\nuser-invocable: false\n---\n\n# MCP Chaining Pipeline\n\nA research-to-implement pipeline that chains 5 MCP tools for end-to-end workflows.\n\n## When to Use\n\n- Building multi-tool MCP pipelines\n- Understanding how to chain MCP calls with graceful degradation\n- Debugging MCP environment variable issues\n- Learning the tool naming conventions for different MCP servers\n\n## What We Built\n\nA pipeline that chains these tools:\n\n| Step | Server | Tool ID | Purpose |\n|------|--------|---------|---------|\n| 1 | nia | `nia__search` | Search library documentation |\n| 2 | ast-grep | `ast-grep__find_code` | Find AST code patterns |\n| 3 | morph | `morph__warpgrep_codebase_search` | Fast codebase search |\n| 4 | qlty | `qlty__qlty_check` | Code quality validation |\n| 5 | git | `git__git_status` | Git operations |\n\n## Key Files\n\n- `scripts\u002Fresearch_implement_pipeline.py` - Main pipeline implementation\n- `scripts\u002Ftest_research_pipeline.py` - Test harness with isolated sandbox\n- `workspace\u002Fpipeline-test\u002Fsample_code.py` - Test sample code\n\n## Usage Examples\n\n```bash\n# Dry-run pipeline (preview plan without changes)\nuv run python -m runtime.harness scripts\u002Fresearch_implement_pipeline.py \\\n    --topic \"async error handling python\" \\\n    --target-dir \".\u002Fworkspace\u002Fpipeline-test\" \\\n    --dry-run --verbose\n\n# Run tests\nuv run python -m runtime.harness scripts\u002Ftest_research_pipeline.py --test all\n\n# View the pipeline script\ncat scripts\u002Fresearch_implement_pipeline.py\n```\n\n## Critical Fix: Environment Variables\n\nThe MCP SDK's `get_default_environment()` only includes basic vars (PATH, HOME, etc.), NOT `os.environ`. We fixed `src\u002Fruntime\u002Fmcp_client.py` to pass full environment:\n\n```python\n# In _connect_stdio method:\nfull_env = {**os.environ, **(resolved_env or {})}\n```\n\nThis ensures API keys from `~\u002F.claude\u002F.env` reach subprocesses.\n\n## Graceful Degradation Pattern\n\nEach tool is optional. If unavailable (disabled, no API key, etc.), the pipeline continues:\n\n```python\nasync def check_tool_available(tool_id: str) -> bool:\n    \"\"\"Check if an MCP tool is available.\"\"\"\n    server_name = tool_id.split(\"__\")[0]\n    server_config = manager._config.get_server(server_name)\n    if not server_config or server_config.disabled:\n        return False\n    return True\n\n# In step function:\nif not await check_tool_available(\"nia__search\"):\n    return StepResult(status=StepStatus.SKIPPED, message=\"Nia not available\")\n```\n\n## Tool Name Reference\n\n### nia (Documentation Search)\n```\nnia__search              - Universal documentation search\nnia__nia_research        - Research with sources\nnia__nia_grep            - Grep-style doc search\nnia__nia_explore         - Explore package structure\n```\n\n### ast-grep (Structural Code Search)\n```\nast-grep__find_code      - Find code by AST pattern\nast-grep__find_code_by_rule - Find by YAML rule\nast-grep__scan_code      - Scan with multiple patterns\n```\n\n### morph (Fast Text Search + Edit)\n```\nmorph__warpgrep_codebase_search  - 20x faster grep\nmorph__edit_file                 - Smart file editing\n```\n\n### qlty (Code Quality)\n```\nqlty__qlty_check         - Run quality checks\nqlty__qlty_fmt           - Auto-format code\nqlty__qlty_metrics       - Get code metrics\nqlty__smells             - Detect code smells\n```\n\n### git (Version Control)\n```\ngit__git_status          - Get repo status\ngit__git_diff            - Show differences\ngit__git_log             - View commit history\ngit__git_add             - Stage files\n```\n\n## Pipeline Architecture\n\n```\n                    +----------------+\n                    |   CLI Args     |\n                    | (topic, dir)   |\n                    +-------+--------+\n                            |\n                    +-------v--------+\n                    | PipelineContext|\n                    | (shared state) |\n                    +-------+--------+\n                            |\n    +-------+-------+-------+-------+-------+\n    |       |       |       |       |       |\n+---v---+---v---+---v---+---v---+---v---+\n| nia   |ast-grp| morph | qlty  | git   |\n|search |pattern|search |check  |status |\n+---+---+---+---+---+---+---+---+---+---+\n    |       |       |       |       |\n    +-------v-------v-------v-------+\n                    |\n            +-------v--------+\n            | StepResult[]   |\n            | (aggregated)   |\n            +----------------+\n```\n\n## Error Handling\n\nThe pipeline captures errors without failing the entire run:\n\n```python\ntry:\n    result = await call_mcp_tool(\"nia__search\", {\"query\": topic})\n    return StepResult(status=StepStatus.SUCCESS, data=result)\nexcept Exception as e:\n    ctx.errors.append(f\"nia: {e}\")\n    return StepResult(status=StepStatus.FAILED, error=str(e))\n```\n\n## Creating Your Own Pipeline\n\n1. Copy the pattern from `scripts\u002Fresearch_implement_pipeline.py`\n2. Define your steps as async functions\n3. Use `check_tool_available()` for graceful degradation\n4. Chain results through `PipelineContext`\n5. Aggregate with `print_summary()`\n","# MCP Chaining Pipeline\n\nA research-to-implement pipeline that chains 5 MCP tools for end-to-end workflows.\n\n## When to Use\n\n- Building multi-tool MCP pipelines\n- Understanding how to chain MCP calls with graceful degradation\n- Debugging MCP environment variable issues\n- Learning the tool naming conventions for different MCP servers\n\n## What We Built\n\nA pipeline that chains these tools:\n\n| Step | Server | Tool ID | Purpose |\n|------|--------|---------|---------|\n| 1 | nia | `nia__search` | Search library documentation |\n| 2 | ast-grep | `ast-grep__find_code` | Find AST code patterns |\n| 3 | morph | `morph__warpgrep_codebase_search` | Fast codebase search |\n| 4 | qlty | `qlty__qlty_check` | Code quality validation |\n| 5 | git | `git__git_status` | Git operations |\n\n## Key Files\n\n- `scripts\u002Fresearch_implement_pipeline.py` - Main pipeline implementation\n- `scripts\u002Ftest_research_pipeline.py` - Test harness with isolated sandbox\n- `workspace\u002Fpipeline-test\u002Fsample_code.py` - Test sample code\n\n## Usage Examples\n\n```bash\n# Dry-run pipeline (preview plan without changes)\nuv run python -m runtime.harness scripts\u002Fresearch_implement_pipeline.py \\\n    --topic \"async error handling python\" \\\n    --target-dir \".\u002Fworkspace\u002Fpipeline-test\" \\\n    --dry-run --verbose\n\n# Run tests\nuv run python -m runtime.harness scripts\u002Ftest_research_pipeline.py --test all\n\n# View the pipeline script\ncat scripts\u002Fresearch_implement_pipeline.py\n```\n\n## Critical Fix: Environment Variables\n\nThe MCP SDK's `get_default_environment()` only includes basic vars (PATH, HOME, etc.), NOT `os.environ`. We fixed `src\u002Fruntime\u002Fmcp_client.py` to pass full environment:\n\n```python\n# In _connect_stdio method:\nfull_env = {**os.environ, **(resolved_env or {})}\n```\n\nThis ensures API keys from `~\u002F.claude\u002F.env` reach subprocesses.\n\n## Graceful Degradation Pattern\n\nEach tool is optional. If unavailable (disabled, no API key, etc.), the pipeline continues:\n\n```python\nasync def check_tool_available(tool_id: str) -> bool:\n    \"\"\"Check if an MCP tool is available.\"\"\"\n    server_name = tool_id.split(\"__\")[0]\n    server_config = manager._config.get_server(server_name)\n    if not server_config or server_config.disabled:\n        return False\n    return True\n\n# In step function:\nif not await check_tool_available(\"nia__search\"):\n    return StepResult(status=StepStatus.SKIPPED, message=\"Nia not available\")\n```\n\n## Tool Name Reference\n\n### nia (Documentation Search)\n```\nnia__search              - Universal documentation search\nnia__nia_research        - Research with sources\nnia__nia_grep            - Grep-style doc search\nnia__nia_explore         - Explore package structure\n```\n\n### ast-grep (Structural Code Search)\n```\nast-grep__find_code      - Find code by AST pattern\nast-grep__find_code_by_rule - Find by YAML rule\nast-grep__scan_code      - Scan with multiple patterns\n```\n\n### morph (Fast Text Search + Edit)\n```\nmorph__warpgrep_codebase_search  - 20x faster grep\nmorph__edit_file                 - Smart file editing\n```\n\n### qlty (Code Quality)\n```\nqlty__qlty_check         - Run quality checks\nqlty__qlty_fmt           - Auto-format code\nqlty__qlty_metrics       - Get code metrics\nqlty__smells             - Detect code smells\n```\n\n### git (Version Control)\n```\ngit__git_status          - Get repo status\ngit__git_diff            - Show differences\ngit__git_log             - View commit history\ngit__git_add             - Stage files\n```\n\n## Pipeline Architecture\n\n```\n                    +----------------+\n                    |   CLI Args     |\n                    | (topic, dir)   |\n                    +-------+--------+\n                            |\n                    +-------v--------+\n                    | PipelineContext|\n                    | (shared state) |\n                    +-------+--------+\n                            |\n    +-------+-------+-------+-------+-------+\n    |       |       |       |       |       |\n+---v---+---v---+---v---+---v---+---v---+\n| nia   |ast-grp| morph | qlty  | git   |\n|search |pattern|search |check  |status |\n+---+---+---+---+---+---+---+---+---+---+\n    |       |       |       |       |\n    +-------v-------v-------v-------+\n                    |\n            +-------v--------+\n            | StepResult[]   |\n            | (aggregated)   |\n            +----------------+\n```\n\n## Error Handling\n\nThe pipeline captures errors without failing the entire run:\n\n```python\ntry:\n    result = await call_mcp_tool(\"nia__search\", {\"query\": topic})\n    return StepResult(status=StepStatus.SUCCESS, data=result)\nexcept Exception as e:\n    ctx.errors.append(f\"nia: {e}\")\n    return StepResult(status=StepStatus.FAILED, error=str(e))\n```\n\n## Creating Your Own Pipeline\n\n1. Copy the pattern from `scripts\u002Fresearch_implement_pipeline.py`\n2. Define your steps as async functions\n3. Use `check_tool_available()` for graceful degradation\n4. Chain results through `PipelineContext`\n5. Aggregate with `print_summary()`\n",{"name":5,"description":7,"allowed-tools":38,"user-invocable":34},[27,39],"Read","main","70e1c350500ee750987420bbae48837afa906b7e","skills\u002Fmcp-chaining","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis","https:\u002F\u002Fgithub.com\u002Frubicanjr","linktr.ee\u002Ffinanskodu","Industrial Engineer & CIO @FinansKodu. Architecting AI-driven financial agents and autonomous workflows. 🏗️ Building systems, not just prompts.","2026-06-09 13:50:15",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add rubicanjr\u002FFinCognis --skill mcp-chaining",{"tool":54,"command":55},"bunx","bunx skills add rubicanjr\u002FFinCognis --skill mcp-chaining",{"tool":57,"command":58},"pnpm","pnpm dlx skills add rubicanjr\u002FFinCognis --skill mcp-chaining","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-chaining\u002FSKILL.md",true,[],[63,79,87,104,130,149],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":33},"01M6NWS9DAXJTADT4T5MB49X8W","workflow-router","Goal-based workflow orchestration - routes tasks to specialist agents based on user goals","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-router\u002FSKILL.md",[],[70,71,72,73,74,75,76,77,78],"workflow router","workflow","router","orchestration","goals","goal","user","workflow orchestration","tasks",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":33},"01M6NWS3RETSC0SHP16HP66E14","wiring","Wiring Verification","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwiring\u002FSKILL.md",[],[81,86,29],"verification",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":33},"01M6NWS0XW9CVQZBDA1EGW0TWC","websocket-patterns","Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwebsocket-patterns\u002Fskill.md",[],[94,95,96,97,98,99,100,101,102,103],"websocket","patterns","websocket patterns","design","protocol","management","message","strategies","binary","connection",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":33},"01M6NWRDQDX9ZNETAWRRMQWV52","visual-verdict","Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS\u002FREVISE\u002FFAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-verdict\u002FSKILL.md",[],[111,112,113,114,115,116,117,118,119,120,121,122,123,97,124,125,126,127,128,129],"visual","verdict","visual verdict","ui","across","revise","comparison","correctness","implementing","for","fixes","dimensions","frontend","development","qa","screenshot","returns","use","frontend development",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":33},"01M6NWR8HSNRS7MNDK2J02QYMN","verification-loop","Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[137,138,86,139,140,141,142,143,144,145,146,147,148],"verification loop","loop","lint","review","security","pr","system","diff","build","tests","diff review","types",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":33},"01M6NWR4HHSFR0VR5EXFRWA747","vector-db-patterns","Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvector-db-patterns\u002Fskill.md",[],[156,157,158,159,95,160,161,162,163,101,164,165,166,167,168,120,169,170],"vector db patterns","vector db","db","vector","semantic search","search","embedding strategies","algorithms","chunking","semantic","retrieval","embedding","Hybrid Search","hybrid","rag"]