ilang-ai/autocode / skills/product-study
product-study
UnverifiedStudy an existing product from its public pages and turn it into an evidence-backed blueprint plus an MVP cut that AutoCode can build and ship. Use this whenever the user wants something "like X", "similar to X", "my own version of X", "a clone of X", names a competitor they admire, or pastes a product URL and asks to build it — even when they never say "research" or "analyze". Public sources only (official site, docs, pricing, changelog, public repos, app-store listings, public reviews); no logins, captures, decompiling, or copying of code, copy, images or brand.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.9 KB |
| examples/dino/README.md | markdown | 1.6 KB |
| examples/dino/blueprint.md | markdown | 9.6 KB |
| examples/dino/mvp.md | markdown | 4.5 KB |
| examples/dino/site/acceptance.js | script | 2.9 KB |
| examples/dino/site/index.html | other | 13.1 KB |
| examples/dino/sources.json | config | 1.5 KB |
| examples/linear/README.md | markdown | 1.0 KB |
| examples/linear/blueprint.md | markdown | 22.7 KB |
| examples/linear/mvp.md | markdown | 5.2 KB |
| examples/linear/sources.json | config | 9.2 KB |
| references/blueprint-template.md | markdown | 5.6 KB |
| references/boundaries.md | markdown | 3.9 KB |
| references/sources-policy.md | markdown | 5.2 KB |
| scripts/acceptance_run.py | script | 6.6 KB |
| scripts/blueprint.py | script | 16.9 KB |
| scripts/fetch_public.py | script | 25.6 KB |
| scripts/selftest.py | script | 14.1 KB |
examples/dino/site/acceptance.js
View on GitHub// Acceptance for mvp.md — machine-checkable parts. Prints one JSON row per check (S5 convention).
// Run via: python3 skills/product-study/scripts/acceptance_run.py <site_dir> [--url <live>]
const fs = require('fs'), vm = require('vm');
const html = fs.readFileSync(process.argv[2] || 'index.html', 'utf8');
const rulesSrc = html.match(/<script id="rules">([\s\S]*?)<\/script>/)[1];
const sandbox = { module: { exports: {} } };
vm.runInNewContext(rulesSrc, sandbox);
const R = sandbox.module.exports;
const f3 = n => (Math.round(n * 1000) / 1000).toFixed(3);
const rows = [];
const check = (id, what, expected, actual, ok) => rows.push({ id, check: what, expected: String(expected), actual: String(actual), ok });
// 1. 开始后 2 秒内生成了障碍
{
const st = R.newState(); R.start(st);
let firstAt = null;
for (let i = 1; i <= 120; i++) { R.update(st); if (st.obstacles.length && firstAt === null) firstAt = i; }
check('1', '开始后 2 秒(120 次更新)内出现障碍', '≤ 120 次更新', firstAt === null ? '未出现' : firstAt + ' 次更新', firstAt !== null && firstAt <= 120);
}
// 2. 跳跃:y 先升后回到地面
{
const st = R.newState(); R.start(st); R.jump(st);
let peak = 0, landed = null;
for (let i = 1; i <= 120; i++) { R.update(st); peak = Math.max(peak, st.dinoY); if (!st.jumping && landed === null && i > 1) landed = i; }
check('2', '按空格后恐龙跳起再落地', '峰值 > 0 且落地', '峰值 ' + f3(peak) + ',' + (landed ? landed + ' 次更新后落地' : '未落地'), peak > 0 && landed !== null);
}
// 3. 滑块 3 → 12:速度等于滑块值,自动加速关闭
{
const st = R.newState(); R.setAuto(st, true); R.start(st);
R.setSliderSpeed(st, 3); const s3 = st.speed; R.setSliderSpeed(st, 12);
check('3', '滑块拖到 12 后游戏速度', '12.000(自动加速关)', f3(st.speed) + '(自动加速' + (st.auto ? '开' : '关') + ',之前 ' + f3(s3) + ')', st.speed === 12 && !st.auto && s3 === 3);
}
// 4. 重开:距离 0、速度回到设定、状态进行中
{
const st = R.newState(); R.start(st); R.setSliderSpeed(st, 9);
for (let i = 0; i < 400; i++) R.update(st);
st.status = 'crashed'; const dBefore = Math.floor(st.distance);
R.restart(st);
check('4', '撞毁后重开', '距离 0,速度 9.000,进行中', '距离 ' + Math.floor(st.distance) + '(之前 ' + dBefore + '),速度 ' + f3(st.speed) + ',' + (st.status === 'playing' ? '进行中' : st.status), st.distance === 0 && st.speed === 9 && st.status === 'playing');
}
// 5. 自动加速:0/1000/4000/10000 次更新后的速度
{
const ref = { 0: 6.000, 1000: 7.000, 4000: 10.000, 10000: 13.001 };
for (const n of Object.keys(ref)) {
const v = R.simulateAcceleration(Number(n));
check('5', '自动加速 ' + n + ' 次更新后速度', f3(ref[n]), f3(v), f3(v) === f3(ref[n]));
}
}
for (const r of rows) console.log(JSON.stringify(r));
process.exit(rows.some(r => !r.ok) ? 1 : 0);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |