devin-prompting
Internal guidance for composing Devin prompts for coding, review, diagnosis, and research tasks inside the Devin Claude Code plugin
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- devin-prompting
- description
- Internal guidance for composing Devin prompts for coding, review, diagnosis, and research tasks inside the Devin Claude Code plugin
- user-invocable
- false
03 SKILL.md 正文
Devin Prompting
Use this skill when devin:devin-rescue needs to hand a task to Devin.
Prompt Devin like an operator, not a collaborator. Keep prompts compact and block-structured with XML tags. State the task, the output contract, the follow-through defaults, and the small set of extra constraints that matter.
Core rules:
- Prefer one clear task per Devin run. Split unrelated asks into separate runs.
- Tell Devin what done looks like. Do not assume it will infer the desired end state.
- Add explicit grounding and verification rules for any task where unsupported guesses would hurt quality.
- Prefer better prompt contracts over escalating permission modes or adding long natural-language explanations.
- Use XML tags consistently so the prompt has stable internal structure.
Default prompt recipe:
<task>: the concrete job plus the relevant repository or failure context.<output_contract>: exact shape, ordering, and brevity requirements for the final answer.<default_follow_through_policy>: what Devin should do by default instead of asking routine questions.<verification_loop>: required for debugging, implementation, or risky fixes — Devin should run the test or repro before declaring done.<grounding_rules>: required for review, research, or anything that could drift into unsupported claims.<action_safety>: for write-capable tasks — stay narrow, no unrelated refactors, no new dependencies unless asked.
Know the runtime limits:
devin -pis a single turn — Devin cannot ask questions mid-run. The prompt must carry everything it needs.- In
accept-editsmode (the default for--write), file edits auto-approve but shell commands are rejected — Devin cannot run tests or builds in that mode. If the task genuinely needs command execution, the caller must pass--permission-mode dangerousor--sandbox. - In
normalmode, only read-only tools work — good for diagnosis and research. - In
autonomousmode (--sandbox), commands run inside an OS sandbox; edit-tool writes are rejected. Good for safe read-only investigation that still needsgit,grep, or test runners.
How to choose prompt shape:
- Use the built-in
revieworadversarial-reviewcommands when the job is reviewing local git changes. Those prompts already carry the review contract. - Use
taskwhen the task is diagnosis, planning, research, or implementation and you need to control the prompt directly. - Use
task --resumefor follow-up instructions on the same Devin thread. Send only the delta instruction instead of restating the whole prompt unless the direction changed materially.
Working rules:
- Prefer explicit prompt contracts over vague nudges.
- Do not escalate permission mode first. Tighten the prompt and verification rules before reaching for
dangerous. - Keep claims anchored to observed evidence. If something is a hypothesis, say so.
- Front-load the files and symptoms that matter: Devin starts cold, so name the entry points.
Prompt assembly checklist:
- Define the exact task and scope in
<task>. - Choose the smallest output contract that still makes the answer easy to use.
- Decide whether Devin should keep going by default or stop for missing high-risk details.
- Add verification, grounding, and safety tags only where the task needs them.
- Remove redundant instructions before sending the prompt.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.