61 lines
1.8 KiB
Markdown
61 lines
1.8 KiB
Markdown
---
|
|
description: Generate a self-contained prompt for another AI assistant
|
|
---
|
|
|
|
Generate a high-quality prompt for another AI assistant that may not have access to this workspace memory.
|
|
|
|
Read:
|
|
|
|
@core/README.md
|
|
@core/memory/operational-memory.md
|
|
@project-knowledge/01-current/current-work.md
|
|
@project-knowledge/01-current/work-items.md
|
|
@project-knowledge/03-context/project.md
|
|
@agent-memory/workflows/ai-to-ai-prompting.md
|
|
|
|
Read active profile, if present:
|
|
|
|
!`profile="${AIW_PROJECT_PROFILE:-fidelity}"; if [ -f "profiles/$profile/profile.md" ]; then cat "profiles/$profile/profile.md"; elif [ -f profiles/fidelity/profile.md ]; then cat profiles/fidelity/profile.md; else echo "No profile file found."; fi`
|
|
|
|
Relevant active work item files, if available:
|
|
|
|
!`python3 - <<'PY'
|
|
import re
|
|
from pathlib import Path
|
|
|
|
summary = Path("project-knowledge/01-current/work-items.md")
|
|
if not summary.is_file():
|
|
print("No work item files available.")
|
|
raise SystemExit(0)
|
|
|
|
text = summary.read_text()
|
|
paths = re.findall(r"Detail: `(project-knowledge/02-work-items/[^`]+)`", text)
|
|
if not paths:
|
|
print("No work item files available.")
|
|
raise SystemExit(0)
|
|
|
|
for rel in paths:
|
|
path = Path(rel)
|
|
if not path.is_file():
|
|
continue
|
|
print(f"\n### {rel}")
|
|
print(path.read_text())
|
|
PY`
|
|
|
|
User request:
|
|
|
|
$ARGUMENTS
|
|
|
|
Instructions:
|
|
|
|
- use `ai-prompt-engineering` when available
|
|
- make the prompt self-contained
|
|
- include only relevant project context
|
|
- tell the target AI what to inspect before changing code or producing conclusions
|
|
- include constraints, non-goals, expected output, and validation expectations
|
|
- include work-item IDs and approved titles when relevant
|
|
- do not assume the target AI can read this workspace
|
|
- do not invent file paths if the implementation repository is not available here
|
|
|
|
Return only the prompt unless the user asks for explanation.
|