name: research-goal-curator description: Curate an existing AGENT_GOAL.md from a research brief and optional chat context. Use when a workspace already has AGENT_GOAL.md and the user wants to refine or save an explicit research goal. Do not use it to scaffold AGENT files, rewrite AGENT.md or other agent files, or infer a final goal without interacting with the user.
Research Goal Curator
Trigger
- Use when a workspace already contains
AGENT_GOAL.mdand the user wants to refine, clarify, or save a research goal. - Use when the user has a research brief, chat history, or tentative wording that should be turned into an internally consistent goal file.
- Do not use this skill to scaffold AGENT files. If
AGENT_GOAL.mddoes not exist, route to the appropriate scaffolder:agent-filesfor generic workspaces ormanuscript-writing-agent-filesfor LaTeX IEEE manuscript writing. - Do not use this skill to rewrite
AGENT.md,AGENT_HARNESS.md, orAGENT_PROGRESS.md; its write surface is onlyAGENT_GOAL.md.
Inputs
target_dir: workspace directory expected to containAGENT_GOAL.mdresearch_brief: concise statement of the research intent to preserve and refine into durable goal-file contentchat_context: optional conversation excerpts, notes, or prior wording; supporting context only, not persistent scope unless explicitly approved as goal-file contentdry_run: when true, return a structured preview without writing
Workflow
- Verify that
target_dir/AGENT_GOAL.mdexists. If it does not, stop and tell the caller to scaffold the workspace first with the appropriate scaffolder (agent-filesfor generic workspaces ormanuscript-writing-agent-filesfor LaTeX IEEE manuscript writing). - Read the existing
AGENT_GOAL.mdand identify its current sections: statement, scope, non-goals, success criteria, and constraints. - Read
research_briefand anychat_context, then interact with the user until the research intention is explicit enough to save. Treat chat context as evidence for wording and intent; do not turn it into persistent scope, non-goals, success criteria, or constraints unless the user explicitly approves that content forAGENT_GOAL.md. - When the user has already approved exact wording, preserve that wording unless the user explicitly asks for a revision.
- Curate the whole
AGENT_GOAL.mdso the sections are mutually consistent and reflect the same research intention. Preserve neutral scaffold entries such as "Not yet specified by user" only when the user has not approved durable content for that section; replace them deliberately when the user approves concrete section content. - If
dry_runis true, return the proposed update summary without writing. Otherwise updateAGENT_GOAL.mdand return a concise report of what changed.
Outputs
goal_pathwrittensummaryupdated_sectionswarningsopen_questions
Failure / Escalation
- If
AGENT_GOAL.mdis missing, fail cleanly and route to the appropriate scaffolder:agent-filesfor generic workspaces ormanuscript-writing-agent-filesfor LaTeX IEEE manuscript writing. - If the user intention remains ambiguous after refinement, stop with
written=falseand put the remaining blockers inopen_questions. - If the chat contains conflicting goal statements, ask the user which wording governs before writing.
- If chat context suggests additional scope or constraints but the user has not approved them as durable goal-file content, leave the relevant neutral scaffold entries in place and report the ambiguity in
open_questions. - If the request expands into broader agent-file editing, state that the other agent files are out of scope for this skill.
Tool Contract
- Read
tool.jsonfor the authoritative schema. - The JSON schema enforces input/output shape only. The semantic checks for approved durable goal content and neutral scaffold-entry preservation are workflow requirements enforced before writing.
target_dirandresearch_briefare required.chat_contextis optional supporting input and should not override explicit user-approved wording.- Always return the full output envelope even when no write occurs.