66 lines
2.2 KiB
Markdown
66 lines
2.2 KiB
Markdown
---
|
|
description: Generate a high-quality prompt for GitHub Copilot on the Fidelity development machine
|
|
---
|
|
|
|
Generate a prompt that the user can send to GitHub Copilot or another AI assistant on the Fidelity development machine.
|
|
|
|
Read:
|
|
|
|
@core/README.md
|
|
@core/memory/operational-memory.md
|
|
@prompts/copilot-prompt.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
|
|
@project-knowledge/03-context/ios/index.md
|
|
@project-knowledge/03-context/ios/project-swift-guidance.md
|
|
@project-knowledge/03-context/systems/index.md
|
|
@project-knowledge/03-context/workstreams/index.md
|
|
|
|
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`
|
|
|
|
Detailed 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` and `copilot-prompt-engineering` if available.
|
|
- Generate a self-contained prompt for the target AI.
|
|
- Include only context relevant to the request.
|
|
- Include Jira ID/title when the task maps to an active work item.
|
|
- Tell Copilot what to inspect before making assumptions.
|
|
- Include constraints, non-goals, expected output, and validation.
|
|
- If the user asks for implementation help but the write scope is unclear, generate an investigation/plan prompt rather than a code-change prompt.
|
|
- Do not mention this workspace unless explaining that the target AI will not have access to it.
|
|
|
|
Return only the final prompt unless the user explicitly asks for commentary.
|