用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/llipe/dev-tasks --skill activity-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Perform bounded, delegated codebase investigation and emit a structured research artifact. Use when downstream agents need grounded, file-level evidence without pulling the search transcript into their own context.
Validate API contracts against implementation using dt verify (contract-diff, impact, drift). Detects breaking changes, consumer impact, and spec-to-code staleness. Use when checking API boundary integrity.
Author Playwright end-to-end tests from verifier scenario tables. Covers auth, state reset, CI config, and scenario-to-spec traceability. Use when writing or backfilling E2E tests.
基于 SOC 职业分类
正在显示 SKILL.md
| name | activity-init |
| description | Establish product-context.md and technical-guidelines.md foundation docs. Use in product-engineer Init Mode. |
Establish the foundational documents for a project: Product Context and Technical Guidelines. Use this skill when starting a new project, performing a strategic pivot, or refreshing stale foundation documents. Invoked by the product-engineer agent in Init Mode.
RFC 2119 Notice: The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119.
Guide an AI assistant in establishing the foundational documents for a project: Product Context and Technical Guidelines. These documents serve as the "constitution" for all future development — every PRD, specification, user story, and implementation decision SHOULD be informed by them.
Run this activity once per project (or when a major strategic or technical pivot occurs).
Every document produced by this activity MUST include a Changelog table as the first section after the document title. The changelog tracks the version history of the document.
1.0.1.1, 1.2, …).2.0).@username, developer-agent, planner-agent).## Changelog
| Version | Date | Summary | Author |
| ------- | ---------- | --------------- | ------------------ |
| 1.0 | YYYY-MM-DD | Initial version | @user / agent-name |
Before starting the interview, the skill MUST detect the repository mode and route accordingly. The detection logic is:
component.json exists at the repository root → the repository is a component in a multi-repo product. Context resolution passes exclusively through dt.component.json at root, but /docs directory exists → current single-repo flow (interview + direct docs generation).component.json nor /docs → extraction-first flow to bootstrap documentation from code, then interview.Precedence: If both
component.jsonAND/docsexist, multi-repo mode wins —component.jsonis the authoritative signal.
When component.json is present at the repo root, the skill MUST delegate all context resolution to dt and MUST NOT read /docs or walk the repository directly.
Invoke dt init --task "<user's task/product description>" --json.
Handle exit codes:
| Exit Code | Meaning | Action |
|---|---|---|
0 | Success — bundle emitted | Load bundle files in numeric order. Present review_flags (if any) to the user before proceeding to planning. Continue to the interview for product context and technical guidelines using the bundle as input. |
7 | Gate abort — partition proposal | Present the partition proposal to the user. Explain that the scope is too broad and needs to be split. Stop — do not proceed to planning. |
9 | Stale catalog index | Inform the user that the catalog index is stale and needs to be rebuilt (e.g., dt catalog build). Stop — do not proceed. |
10 | Invalid scope after LLM retry | Inform the user that automatic scoping failed. Suggest running with --components for manual scope. Stop. |
11 | No candidates found | Inform the user that no components matched the task description. Suggest refining the task text or using --components. Stop. |
6 | Budget overflow | Inform the user that the scoped context exceeds the token budget. Suggest narrowing scope with --max-components or --budget. Stop. |
On success (exit 0):
review_flags are present in the JSON output, present them as warnings to the user (e.g., "scope spans >2 domains", "low-payload boundary contract") and ask whether to proceed./docs reading./docs, walk the repository tree, or inspect source files directly in multi-repo mode.dt init bundle output.When no component.json is present but /docs exists, the skill follows the existing single-repo flow unchanged.
product-context.md using the structure below.technical-guidelines.md using the structure below./docs/ and present them for user review.When neither component.json nor /docs exists, the repository has no established documentation. The skill bootstraps documentation from code extraction before conducting the interview.
dt extract detect to identify the repository's technology stack, frameworks, and extractable artifacts.dt extract all --interactive to extract schema, OpenAPI, AsyncAPI, and component manifest from the codebase.
--interactive flag allows the user to confirm or skip ambiguous extractions.dt extract all --interactive picks up where it left off).unresolved items.product-context.md and technical-guidelines.md using the extraction results as pre-filled context combined with interview answers./docs/ and present them for user review.dt extract detect reports that no extractable content was found (empty project), skip extraction and proceed directly to the interview (pure greenfield).Adapt questions based on context provided (and based on mode — in multi-repo mode, the bundle already provides some answers):
product-context.mdpnpm for JS/TS projects?"package.json scripts (lint, format:check, typecheck, test, audit, validate) be enforced?"technical-guidelines.mdWhen the project includes JavaScript/TypeScript:
pnpm MUST be the default package manager.npm MAY be used only when pnpm is unavailable or explicitly disallowed by project constraints.package.json scripts SHOULD include canonical names:
lint, lint:fixformat, format:checktypechecktest, test:unit, test:integration, test:e2eauditvalidate (aggregate quality gate script).md)/docs/product-context.md, technical-guidelines.mdWhen generating or updating AGENTS.md during project initialization, you MUST follow the sizing guidelines in docs/agents-md-guidelines.md:
docs//docs or walk the repository directly — all context passes through dt init.