coding-agent-intent-translator
Translates the user's rough, shorthand, typo-heavy, product-oriented software requests into clear, implementation-ready instructions for an autonomous senior coding agent. The canonical invocation is `/translate-to-coding-agent`. Natural-language phrases such as "translate to coding agent", "coding agent", "turn this into a coding task", and "make this agent ready" are supported as fallback triggers.
- License 许可
- MIT
- 最近更新
- 2026-08-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- coding-agent-intent-translator
- version
- 1.1.0
- description
- Translates the user's rough, shorthand, typo-heavy, product-oriented software requests into clear, implementation-ready instructions for an autonomous senior coding agent. The canonical invocation is `/translate-to-coding-agent`. Natural-language phrases such as "translate to coding agent", "coding agent", "turn this into a coding task", and "make this agent ready" are supported as fallback triggers.
02 资源文件 8
- 参考文档.claude-plugin/marketplace.json1.0 KB
- 其他.gitignore129 B
- 参考文档docs/PORTING.md4.6 KB
- 脚本install.sh1.0 KB
- 许可证LICENSE1.0 KB
- 参考文档plugins/coding-agent-intent-translator/.claude-plugin/plugin.json439 B
- 参考文档plugins/coding-agent-intent-translator/commands/translate-to-coding-agent.md650 B
- 参考文档README.md7.5 KB
03 SKILL.md 正文
Coding Agent Intent Translator
Purpose
Transform rough user intent into a high-quality, implementation-ready instruction for an autonomous coding agent.
This skill is NOT a grammar fixer.
It is an intent-to-engineering compiler.
The user may provide:
- shorthand
- misspellings
- incomplete thoughts
- symptoms instead of causes
- product ideas without technical detail
- assumptions about implementation
- multiple related requests mixed together
Your job is to recover the actual desired product outcome and express it in language a capable senior software engineer or autonomous coding agent can execute.
The final result should preserve the user's intent while adding enough engineering structure for the agent to investigate, decide, implement, test, and report.
Invocation and Shortcut Methodology
Canonical Shortcut
The preferred and canonical invocation for this skill is:
/translate-to-coding-agent
Everything following the shortcut should be treated as the user's raw software/product intent and translated using this skill.
Example:
/translate-to-coding-agent AI answered calls are not reaching follow-up. Audit the workflow and fix the root cause.
The slash command is the strongest explicit trigger and should invoke this skill immediately.
Natural-Language Fallback Triggers
Also invoke this skill when the user uses equivalent natural language, including:
translate to coding agent:translate to coding agentcoding agent:make this coding-agent readyturn this into a coding taskwrite this for the coding agent
These fallback phrases exist so the user does not have to remember the exact slash command.
Trigger Precedence
Use the following precedence:
/translate-to-coding-agent— canonical explicit triggertranslate to coding agent— primary natural-language fallback- equivalent coding-agent translation phrases — secondary fallback
Do not require exact punctuation, capitalization, spacing, or spelling for natural-language fallbacks when the intent is obvious.
Input Handling
When invoked, treat everything after the trigger as raw intent.
Do not:
- correct the user's wording first
- ask them to restate it cleanly
- output a grammar-cleaned version before the engineering task
- require formal requirements language
Instead, immediately convert the supplied intent into an implementation-ready engineering brief.
If the command is invoked with no meaningful task content after it, ask for the software/product request to translate.
Infer the intended outcome from available conversation or project context when relevant.
Core Philosophy
Translate:
rough idea → product intent → engineering investigation → technical decision → implementation task → validation → completion report
Do NOT translate:
rough idea → cleaned-up sentence
The coding agent should be treated as a senior engineer capable of inspecting the repository and making technical decisions.
Do not over-prescribe implementation details that should be discovered from the codebase.
Translation Process
Step 1 — Identify the Actual Outcome
Determine what the user ultimately wants to happen.
Separate:
- desired outcome
- observed problem
- proposed solution
- assumptions
- constraints
The user's proposed solution is not necessarily the correct implementation.
Preserve the desired outcome, not necessarily the proposed mechanism.
Example:
User says:
AI answered calls never go into followup tab. audit behavior and make a choice
Interpret as:
- Determine how AI-answered calls are currently categorized.
- Determine what qualifies a call for Follow-Up.
- Identify whether the current behavior is intentional or defective.
- Recommend the best behavior.
- Implement it if appropriate.
- Validate existing call workflows are not broken.
Step 2 — Classify the Request
Determine the task mode.
ADD
User wants new functionality.
Examples:
- "add a VIP badge"
- "need a receipt button"
- "add search"
Agent behavior:
Inspect the existing architecture, identify the correct integration point, then implement the feature using existing patterns.
FIX
User reports incorrect behavior.
Examples:
- "spam calls aren't going to junk"
- "button doesn't work"
- "calls never reach follow-up"
Agent behavior:
Trace the workflow end-to-end, identify root cause, fix it, regression test related behavior.
AUDIT
User wants understanding before changes.
Examples:
- "audit how spam is identified"
- "look at the architecture"
- "see what happened to the automation"
Agent behavior:
Investigate first. Do not assume changes are required. Report findings, identify gaps, then make or recommend changes when justified.
REFACTOR / CLEANUP
User wants consistency or organization.
Examples:
- "clean this up"
- "make the environment consistent"
- "organize the project"
Agent behavior:
Map existing architecture, identify duplication/inconsistency, propose a target structure, make low-risk improvements, avoid unnecessary rewrites.
PRODUCT FEATURE / "I WANT"
User describes desired behavior without specifying implementation.
Examples:
- "I want users to have profiles"
- "I want images customers send in a gallery"
Agent behavior:
Treat the statement as product intent. Investigate existing capabilities and choose the strongest implementation.
Step 3 — Establish Business Intent
Include WHY the feature matters whenever it can be reasonably inferred.
Examples:
Instead of:
Add keyword search to calls.
Use:
Add keyword search to call history so staff can quickly find prior conversations based on caller topics, products, names, or other remembered details without manually reviewing calls.
Instead of:
Add lead link.
Use:
Make the relationship between calls and CRM leads directly navigable so staff can move between communication history and lead context without searching manually.
Business intent helps the coding agent make better implementation decisions.
Do not invent business requirements that are unsupported.
Step 4 — Require Repository Investigation
Unless the requested change is trivial, instruct the coding agent to inspect the current implementation before changing code.
The investigation should determine, where relevant:
- existing feature flow
- relevant files
- components
- routes
- services
- database models
- schemas
- APIs
- background jobs
- queues
- webhooks
- integrations
- authentication
- authorization
- state management
- reusable utilities
- existing design patterns
- similar features elsewhere in the project
- tests
- documentation
- AGENTS.md or equivalent repository instructions
The agent should understand the current architecture before introducing new architecture.
Step 5 — Trace Complete Workflows
For bugs or workflow problems, require end-to-end tracing.
Typical flow:
User Interface ↓ Client state ↓ API / server action ↓ Business logic ↓ Database ↓ Background processing / external service ↓ Database result ↓ UI presentation
For communication systems:
Inbound event ↓ classification ↓ customer/lead matching ↓ call/message storage ↓ AI processing ↓ status assignment ↓ follow-up logic ↓ CRM display
For payments:
Purchase/order ↓ payment/deposit record ↓ payment method ↓ receipt representation ↓ delivery channel ↓ delivery status ↓ audit trail
Find the point where actual behavior diverges from intended behavior.
Do not patch only the visible symptom unless the root cause is confirmed to be there.
Step 6 — Prefer Existing Architecture
The coding agent should prefer extending existing patterns.
Specifically avoid introducing:
- duplicate services
- parallel authentication systems
- duplicate customer records
- competing data models
- redundant API endpoints
- unnecessary dependencies
- one-off helpers
- hardcoded special cases
- client-only security controls
- disconnected automation scripts
- duplicate UI components
If similar functionality exists elsewhere in the repository:
- identify it
- determine whether it can be reused
- generalize it when sensible
- maintain consistency
Architecture coherence is more valuable than locally convenient code.
Step 7 — Give the Agent Decision Authority
Do not turn the coding agent into a literal instruction follower.
Explicitly allow it to choose the strongest implementation after investigation.
When multiple approaches exist, evaluate:
- maintainability
- implementation complexity
- operational complexity
- security
- performance
- scalability
- UX
- data integrity
- compatibility
- future extensibility
- failure modes
- migration risk
- technical debt
The user's desired outcome is authoritative.
The user's guessed technical implementation is not necessarily authoritative.
If a superior implementation achieves the same outcome, the agent may use it.
Step 8 — Use Subagents for Faster Operation
When the available environment supports subagents or parallel workers, the translated task should encourage delegation for substantial work that can safely be split.
Use subagents to accelerate:
- repository discovery across unrelated directories
- architecture and dependency mapping
- root-cause investigation across separate workflow stages
- test discovery and validation
- focused code review of the final diff
- documentation or migration impact checks
Do not create subagents for trivial tasks, highly coupled edits where parallel work would create churn, or work requiring a single coherent product decision before investigation is complete.
The parent coding agent remains responsible for:
- preserving the original product intent
- deciding scope and architecture
- merging findings from subagents
- resolving conflicts between recommendations
- validating implementation quality
- reviewing the final diff
- producing the final completion report
Subagents are an acceleration tool, not a transfer of responsibility.
Delegation Pattern
For complex tasks, suggest this workflow when available:
Research / exploration subagent → implementation subagent → test / validation subagent → review subagent
These can run in parallel when their work does not depend on each other's outputs. For example, one subagent can map frontend components while another maps API routes or data models. Validation and review should usually happen after implementation.
Delegation Context Packet
Every delegated task must include enough context for the subagent to preserve the user's intent. Do not assume a subagent inherits the parent conversation.
Include:
- original user intent, including relevant wording
- translated objective
- task classification
- known product/business reason
- relevant repository context already discovered
- applicable AGENTS.md, skill, or project instructions
- files, components, workflows, services, routes, models, tests, and docs already identified
- current behavior and desired behavior
- constraints, security boundaries, and data-integrity requirements
- acceptance criteria
- testing expectations
- explicit limits on scope and authority
A subagent must not independently redefine product intent, architecture, scope, acceptance criteria, security requirements, or completion criteria unless the parent agent explicitly asks it to evaluate those decisions.
Delegation Output Contract
Ask each subagent to report:
- files and workflows inspected
- findings with evidence
- recommended change or test target
- commands run and results
- risks, uncertainties, or blocked items
- any assumptions it made
The parent agent should incorporate only substantiated findings and should verify implementation changes directly before completion.
Step 9 — UX Requirements
For user-facing functionality, require the coding agent to integrate the feature naturally into the existing product.
Review:
- feature placement
- navigation
- visual hierarchy
- responsiveness
- mobile behavior
- loading states
- empty states
- error states
- success feedback
- confirmation behavior
- destructive action safeguards
- permissions
- accessibility
- existing design system
- consistency with related screens
Avoid UI that feels appended or disconnected.
Step 10 — Data Integrity
For anything involving persistent data, inspect how current records are modeled before changing schema or behavior.
Common domains:
- customers
- leads
- calls
- messages
- purchases
- preorders
- payments
- deposits
- receipts
- users
- profiles
- inventory
- tasks
- notifications
Requirements:
- preserve existing data
- avoid destructive migrations
- maintain backward compatibility where practical
- use existing relationships when possible
- avoid duplicate sources of truth
- define clear ownership of new fields
- consider historical records
- handle null/missing legacy values
Schema changes should be justified, not automatic.
Step 11 — Security Review
For features touching any of the following:
- authentication
- authorization
- admin functions
- customer information
- personal data
- payments
- messaging
- SMS
- API keys
- file uploads
- external integrations
Require the agent to evaluate security boundaries.
Check:
- authorization server-side
- role/permission enforcement
- input validation
- output encoding
- secrets handling
- data exposure
- access control
- abuse cases
- duplicate actions
- replay/idempotency where applicable
- logging of sensitive information
Never rely solely on hidden UI elements or client-side checks for authorization.
Step 12 — Failure Modes and Edge Cases
Instruct the agent to consider realistic failure conditions.
Examples:
Messaging
- missing phone number
- missing email
- invalid contact information
- provider failure
- duplicate send
- delayed delivery
- partial delivery
CRM
- call without lead
- lead without customer
- duplicate contacts
- deleted records
- imported legacy records
Payments
- deposit vs full payment
- multiple payments
- refunds
- unknown payment method
- legacy transactions
Authentication
- existing users
- duplicate OAuth email
- unverified accounts
- expired session
- permission mismatch
Only include edge cases relevant to the requested task.
Step 13 — Test the Full Outcome
Testing should verify the user's actual desired behavior, not merely that the code compiles.
Where relevant require:
- unit tests
- integration tests
- end-to-end tests
- manual workflow validation
- regression testing
- responsive/mobile validation
- permission testing
- error-state testing
The agent should inspect existing test conventions and use them where available.
Do not demand a specific test framework unless the repository already uses one.
Step 14 — Clean Up Closely Related Problems
If the investigation uncovers:
- dead code
- obvious duplicated logic
- stale code paths
- directly related bugs
- inconsistent naming
- broken assumptions
- small architectural issues
the agent may clean them up when:
- directly related to the task
- low risk
- clearly improves correctness or maintainability
Do not turn a focused task into an uncontrolled rewrite.
Step 15 — Documentation and Project State
Inspect whether the repository uses:
- AGENTS.md, CLAUDE.md, or any equivalent agent-instruction file
- editor/agent rule directories (
.cursor/rules,.github/copilot-instructions.md, and similar) - README
- task board
- CHANGELOG
- docs/
- architecture notes
- migrations documentation
- implementation journals
Update the appropriate project artifacts if the change warrants it.
Do not create redundant documentation systems when one already exists.
Step 16 — Completion Report
Every substantial coding-agent task should end by asking the agent for a concise completion report.
Use this structure:
Findings
What existed before.
What caused the bug, limitation, inconsistency, or missing capability.
Decision
What implementation approach was selected and why.
Mention meaningful alternatives only when relevant.
Implementation
What changed.
Describe important behavior, architecture, and data changes.
Files Changed
List important files/components/services/schema migrations changed.
Testing
What was tested and the result.
Risks / Notes
Any meaningful limitations, compatibility concerns, technical debt, or operational implications.
Follow-Up
Items worth addressing later that were intentionally left outside the current scope.
Output Format
When translating the user's request, output ONLY the coding-agent-ready task unless the user specifically asks for explanation.
Use the following structure when appropriate:
Task: [Clear Task Name]
Objective
State the intended product/business outcome.
Current Problem / Context
Explain the observed behavior or requested capability.
Investigation
Tell the agent what it needs to understand before implementation.
Requirements
List required user-visible and system behavior.
Implementation Guidance
Define principles and constraints without unnecessarily dictating exact code.
Edge Cases / Safety
Include relevant failure, data, permission, or security considerations.
Validation
Define what must be verified before completion.
Deliverable
Require implementation plus a concise findings/change/testing report.
Do not mechanically include every heading when the task is simple.
The output should be proportional to the complexity of the request.
Writing Style
The coding-agent task should be:
- direct
- concise
- technically precise
- implementation-oriented
- repository-aware
- outcome-driven
- senior-engineer level
Avoid:
- motivational language
- excessive explanation
- repeating the user's wording
- unnecessary restatement
- generic software advice
- fake certainty
- invented architecture
- invented filenames
- invented database tables
- invented APIs
Use existing names from the user's request exactly when relevant.
Important Behavior
Do Not Ask Unnecessary Questions
If repository inspection can answer the question, instruct the coding agent to inspect the repository.
Do not make the user answer technical questions the codebase can answer.
Only surface a question when the requirement itself is genuinely ambiguous and choosing incorrectly would materially change the product outcome.
Prefer reasonable inference and investigation over interruption.
Example 1 — Simple Feature
User Input
translate to coding agent: VIP badge that I can add to customers
Output
Task: Add Customer VIP Status
Objective
Add a simple VIP designation to customer records so staff can mark important customers and immediately recognize them throughout the CRM.
Investigation
Before implementing, inspect the existing customer data model, customer detail/edit workflows, shared customer components, and any existing tag/status/badge system. Reuse an existing extensible mechanism if one already fits rather than creating a parallel concept.
Requirements
- Authorized staff can mark or unmark a customer as VIP.
- VIP status persists with the customer record.
- Display a clear but unobtrusive VIP badge in the primary customer views where recognition is useful.
- The control should fit naturally into the existing customer editing workflow.
- Existing customers should remain valid without migration issues.
- Do not expose the control to users who cannot normally edit customer records.
Validation
Test setting and removing VIP status, persistence after reload, existing customers, permissions, and relevant mobile layouts.
Deliverable
Implement the feature and report the approach used, files changed, tests performed, and any related architectural findings.
Example 2 — Bug / Audit
User Input
translate to coding agent: AI answered calls never go into followup tab, want to audit behavior and make a choice
Output
Task: Audit AI-Answered Call Follow-Up Workflow
Objective
Determine why AI-answered calls appear not to enter the Follow-Up workflow and establish the correct behavior so calls requiring human action reliably surface for staff.
Investigation
Trace the complete lifecycle of an AI-answered call from inbound call creation through AI handling, transcription/classification, lead/customer association, status assignment, follow-up qualification, persistence, and display in the Follow-Up tab.
Identify:
- how Follow-Up eligibility is currently determined
- whether AI-answered calls are intentionally excluded
- whether classification occurs before or after follow-up evaluation
- whether status transitions overwrite follow-up state
- whether the UI applies additional filters
- whether background jobs or asynchronous processing affect the result
- how human-answered and missed calls differ from AI-answered calls
Do not assume the Follow-Up tab itself is the problem.
Decision
Based on the existing product logic, determine which AI-answered calls should require follow-up. Avoid simply sending every AI call to Follow-Up if the system already has intent, disposition, spam, resolved-call, or lead-quality signals that can make the decision more accurately.
Implementation
Implement the selected behavior using the existing call classification/status architecture. Avoid introducing a second follow-up system or duplicating classification logic.
Validation
Test multiple AI call outcomes, including calls requiring a callback, resolved informational calls, spam calls, existing customers/leads, new leads, and any relevant failure paths.
Confirm the correct calls appear in Follow-Up and irrelevant calls do not.
Deliverable
Provide findings, root cause, selected behavior, implementation details, files changed, and test results.
Example 3 — Workflow Feature
User Input
translate to coding agent: I want there to be a receipt button next to each purchase in the CRM, so when I push it it will text and email it to them
Output
Task: Add Receipt Delivery Action to CRM Purchases
Objective
Allow staff to send a customer their receipt directly from the corresponding purchase record without manually recreating or separately sending transaction information.
Investigation
Inspect:
- purchase/order data model
- payment and deposit records
- customer contact information
- existing invoice/receipt rendering
- email infrastructure
- SMS infrastructure
- existing communication logging
- current CRM purchase UI
- permission model
Determine whether a canonical receipt representation already exists. Reuse it if possible rather than creating a second receipt format.
Requirements
Add a receipt action next to each applicable purchase.
When triggered:
- generate or retrieve the correct receipt for that transaction
- send it to the customer's available email address
- send it by SMS when a valid phone number exists and the existing messaging system supports the appropriate delivery mechanism
- provide clear success/failure feedback
- avoid accidental duplicate sends
- record delivery activity if the system already maintains communication/audit history
Handle customers missing either email or phone gracefully.
The action must use existing email/SMS services rather than implementing separate delivery infrastructure.
Validation
Test email-only, phone-only, both channels, missing contact data, provider failure, repeated sends, different payment/deposit scenarios, and permissions.
Deliverable
Implement the feature and report the existing architecture discovered, implementation decision, files changed, tests performed, and any follow-up concerns.
Example 4 — Architecture Audit
User Input
translate to coding agent: look around this folder that contains my website projects, look at the architecture and agents.md setup, see if its correct and figure out what happened to the automation I made yesterday to deploy new sites. I think it needs its own folder with an input folder I can drop the site in and it deploys it. audit and tell me what to do to make everything clean consistent organized and efficient
Output
Task: Audit Website Workspace Architecture and Deployment Automation
Objective
Audit the website-project workspace and establish a clean, consistent, agent-friendly structure, including determining the current state of the site-deployment automation and the best long-term location/workflow for it.
Investigation
Start by mapping the workspace rather than making changes.
Inspect:
- top-level folder structure
- individual website projects
- AGENTS.md files and inheritance/scoping
- shared scripts and tooling
- deployment scripts
- automation folders
- configuration files
- recent files/commits/logs related to the deployment automation
- duplicated tooling
- inconsistent project conventions
- generated artifacts or temporary files stored in inappropriate locations
Determine what the intended AGENTS.md architecture appears to be and whether the current implementation matches that intent.
Locate the deployment automation created previously and determine:
- where it currently lives
- how it is triggered
- expected inputs
- deployment target
- configuration dependencies
- whether it is complete
- whether it is currently functional
- whether any work was abandoned, overwritten, moved, or duplicated
Architecture Recommendation
Evaluate whether deployment tooling should become a dedicated shared system such as:
deployment/ AGENTS.md input/ processing/ archive/ logs/ scripts/ config/
Do not adopt this structure automatically. Compare it against the existing workspace architecture and use the structure that best preserves clarity, isolation, and maintainability.
The desired end state is that deploying a new site is simple and repeatable, potentially allowing a prepared site to be placed into an input location and processed by the deployment workflow with minimal manual work.
Deliverable
First produce an audit describing:
- current structure
- intended structure
- inconsistencies
- deployment automation status
- duplicate or abandoned components
- risks
- recommended target architecture
Then make low-risk corrections that are clearly justified, or provide an implementation plan where broader restructuring should be reviewed before execution.
The final environment should prioritize consistency, discoverability, reuse, and efficient operation by both humans and coding agents.
Final Rule
Whenever the user invokes /translate-to-coding-agent — or uses one of the supported natural-language fallback triggers — behave as though they are saying:
Understand what I am trying to accomplish. Convert it into a precise engineering objective. Tell the coding agent to inspect the existing system first, understand the architecture and root cause, make senior-level implementation decisions, preserve consistency and security, execute the work cleanly, validate the complete workflow, and report exactly what it found and changed.
The user should be able to provide messy notes immediately after the shortcut.
Example:
/translate-to-coding-agent need VIP badge I can add to customers
Your output should be clean engineering intent.
Do not echo the slash command in the translated task unless doing so is useful for context.