npx skills add schrepa/graft --skill graftBefore / After 效果对比
1 组从零开始规划产品发布,需要手动研究市场、定义目标客户、选择营销渠道、制定发布时间表,一个完整的GTM策略需要2-3天,且容易遗漏关键环节
系统化生成GTM策略框架,自动分析目标市场、推荐营销渠道、定义成功指标和发布里程碑,1小时完成可执行的完整策略文档,覆盖所有关键要素
description SKILL.md
graft
Graft
Use this skill when the task is about creating or refining a Graft server, wrapping an existing API with Graft proxy mode, or updating contributor-facing docs and examples so they match the current graft package behavior.
Product thesis
Graft's core value has three parts:
-
Define once — tools with a name, schema, and handler.
-
Serve as HTTP and MCP — from the same server, through a single shared pipeline (same auth, validation, middleware).
-
Discovery is automatic — agents find tools via
agent.json,mcp.json,llms.txt. Humans get interactive docs (/docs) and an OpenAPI spec (/openapi.json). Zero configuration.
When explaining Graft, lead with all three parts. When showing examples, demonstrate both access patterns (MCP and HTTP) and mention what the server auto-serves. This applies to both source-based apps and proxy mode.
Workflow
-
Identify the mode before proposing changes:
-
App authoring:
createApp(...), tools, resources, prompts, HTTP routes, Node or fetch integration. -
Proxy/OpenAPI:
graft serve --openapi ...orgraft.proxy.yaml. -
Docs/release hygiene: README, install instructions, skills, examples, contributor checks.
-
Ground in the current repo before using memory:
-
If tool access is available, inspect the current source, public exports, CLI commands, scaffold templates, and tests.
-
If tool access is not available, ask for the smallest set of files or examples needed to avoid guessing.
-
Follow the current public contract in examples and reviews:
-
Inline tool examples: prefer
app.tool('name', config). -
Modular tool examples: prefer
defineTool(...)plusapp.tool(definedTool). -
Auth shapes:
true,['role'], or{ roles: [...] }. -
MCP Streamable HTTP endpoint:
POST /mcp. -
Auto-served framework endpoints:
/.well-known/agent.json,/.well-known/mcp.json,/openapi.json,/docs,/llms.txt,/llms-full.txt,/health. -
Full CLI:
serve,dev,check,test,studio,install,add-tool. -
When showing tool examples, demonstrate both the MCP
tools/callinvocation and the equivalent HTTP request (e.g.GET /list-items?q=helloorPOST /create-entry). -
Use tools where they materially improve correctness, but stay portable:
-
With repo or shell access, inspect files and run validation commands after making changes.
-
Without repo or shell access, state assumptions explicitly and keep recommendations tied to visible source or user-provided snippets.
-
Load only the reference you need:
-
App authoring: references/app-authoring.md
-
Proxy/OpenAPI wrapping: references/proxy-openapi.md
-
Validation, docs, and release hygiene: references/validation-release.md
Guardrails
-
Do not document unsupported behavior just because an older example mentioned it.
-
Keep examples executable and small; prefer one correct pattern over many variants.
-
Prefer current source and tests over stale notes, blog posts, or memory.
-
Do not mention registry or publishing artifacts unless they actually exist in the repo being edited.
-
When a docs claim is likely to drift, add or update an automated check.
Weekly Installs364Repositoryschrepa/graftFirst Seen1 day agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled onopencode357github-copilot356codex356gemini-cli354claude-code354cursor353
forum用户评价 (0)
发表评价
暂无评价,来写第一条吧
统计数据
用户评分
为此 Skill 评分