Custom Prompting
Improve AI upgrade guidance by providing concise repository context and clear PR information. The service automatically gathers these inputs when generating tickets and implementing changes.
Repository context
Section titled “Repository context”Add a single, top‑level guidance file to your repo (first match wins):
- agents.md (preferred)
- AGENTS.md
- docs/agents.md
- .lineai/agents.md
- .lineai/context.md
- .ai/context.md
- .ai/agents.md
- LINEAI_AI.md
What to include (keep it short):
- Build & test commands
- Project layout and module mapping
- Required tools/runtimes
- Policies (commit conventions, test expectations)
Example outline:
# Repository AI Context
## Build & Test
- Build: ./scripts/build.sh- Test: ./scripts/test.sh
## Project layout
- Backend: ./service- Frontend: ./frontend
## Policies
- Do not commit secrets- Keep changes atomic; include tests when changing logicPull request context
Section titled “Pull request context”The service reads PR title/body and recent comments (issue and review). Use the PR body to:
- Link release notes (e.g., Renovate/Dependabot)
- Describe known migration steps or constraints
- Call out non‑standard build commands or modules
How context is used
Section titled “How context is used”When implementing tickets, Lineai builds a single prompt by prepending:
- Pull request metadata (title/body/comments)
- Repository context (from your guidance file)
- The generated ticket content
This helps the AI follow your build/test conventions and repository structure.