- Clone the repository:
git submodule add https://github.com/thangtranse/ai-prompt.git .github/ai-prompt- Update
.vscode/settings.jsonwith the following configuration:
{
"chat.agent.maxRequests": 50,
"chat.customAgentInSubagent.enabled": true,
"chat.agentSkillsLocations": {
".github/ai-prompt/skills": true,
".github/skills": true,
".claude/skills": true,
"~/.copilot/skills": true,
"~/.claude/skills": true
},
"chat.promptFilesLocations": {
".github/ai-prompt/prompts": true,
".github/prompts": true
},
"chat.agentFilesLocations": {
".github/ai-prompt/agents": true,
".github/agents": true
},
"chat.instructionsFilesLocations": {
".github/ai-prompt/instructions": true,
".github/instructions": true,
".claude/rules": true,
"~/.copilot/instructions": false,
"~/.claude/rules": false
},
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"file": ".github/ai-prompt/instructions/copilot-commit-message-generation.md"
}
]
}- Use
/document-apias the entrypoint for documenting a new or changed API. - Use
/document-featureas the entrypoint for documenting a feature, workflow, or integration. - Use
/document-serviceas the entrypoint for documenting a service, module, or worker. - Use
/document-projectas the entrypoint for initializing project-level Mintlify documentation anddocs/docs.json. - The existing
document-api,document-feature, anddocument-serviceprompts run theDocs Orchestratorcustom agent. /document-projectruns theProject Docs Orchestratorcustom agent.Docs Orchestratorroutes API-only work toAPI Doc Orchestrator.Docs Orchestratorroutes feature/service/workflow work throughFeature Context Reader,Flow Mapper,Docs Clarifier,Mintlify Docs, andDocs QA.API Doc Orchestratorstill delegates toAPI Code Reader,API Contract Reader,Mintlify Docs, andDocs QAfor endpoint-level API documentation.Project Docs Orchestratordelegates toModule Context Reader,Architecture Checker,Project Style Checker,Docs Clarifier,Mintlify Docs, andDocs QAfor project bootstrap.chat.customAgentInSubagent.enabledmust be enabled for custom-agent subagent orchestration.
Use the following reusable rules when reviewing or refactoring code for readability and maintainability:
rules/arch-avoid-magic-numbers.mdrules/arch-use-meaningful-names.mdrules/db-use-snake-case-model-fields.mdrules/arch-single-purpose-functions.mdrules/arch-use-early-return.md
Rule interaction:
- Prefer early return for guard clauses to reduce nesting.
- Keep a single main happy-path return when possible.
- Allow one additional return for guard clauses when it makes the function clearer.