docs: add task for agent prompt generation

This commit is contained in:
2026-06-02 06:44:03 +01:00
parent 6211a391b5
commit 6430a16050
6 changed files with 255 additions and 2 deletions
+9 -1
View File
@@ -10,7 +10,7 @@ from rich.table import Table
from .discovery import append_discovery_answer, core_questions
from .handoff import build_handoff
from .status import project_stage, task_counts
from .tasks import get_next_task, update_task_status
from .tasks import generate_agent_prompt, get_next_task, update_task_status
from .templates import CONTEXT_FILES, write_file_if_missing
app = typer.Typer(help="RDB discovery and delivery workflow CLI.")
@@ -131,3 +131,11 @@ def complete(task_id: str) -> None:
def handoff() -> None:
"""Print an AI-agent handoff summary."""
console.print(build_handoff(root_path()))
@app.command()
def prompt() -> None:
"""Generate a ready-to-paste implementation prompt for the next Todo task."""
root = root_path()
result = generate_agent_prompt(root)
console.print(result)