-
Notifications
You must be signed in to change notification settings - Fork 2
Copilot Installation
Install ai-coding-ok in a Copilot project via the install script and customize-prompt.
- GitHub Copilot subscription (Individual / Business / Enterprise)
- Git installed
- Bash (macOS/Linux/Git Bash) or Python 3 (Windows)
git clone https://github.com/Mark7766/ai-coding-ok ~/tools/ai-coding-okThe path is arbitrary — ~/tools/ai-coding-ok is just a suggestion. Keep it somewhere you can reference later.
cd your-project
# macOS / Linux / Git Bash
bash ~/tools/ai-coding-ok/install.sh --copilot
# Windows (PowerShell)
python $env:USERPROFILE\tools\ai-coding-ok\install.py --copilotExpected output:
[ai-coding-ok] Installing Copilot templates -> /home/you/your-project
[ai-coding-ok] Templates installed.
[ai-coding-ok] Next: paste scripts/customize-prompt.md into Copilot Chat to fill in placeholders.
- Open VS Code / JetBrains with Copilot Chat
- Open
~/tools/ai-coding-ok/scripts/customize-prompt.md - Copy the entire content
- Paste into Copilot Chat
- Replace the placeholder sentence with your own description:
我想做的东西(一句话):
> [REPLACE THIS] A personal expense tracker that records what I spend each day
Copilot will:
- Infer your project name, tech stack, architecture
- Open each file with
{{placeholders}}and replace them - Report what decisions it made
| File | Placeholders filled |
|---|---|
AGENTS.md |
Project name, type, tech stack, architecture |
CLAUDE.md |
Project name |
.github/copilot-instructions.md |
Project name, tech stack, conventions |
.github/project-metadata.yml |
All metadata fields |
.github/agent/system-prompt.md |
Project name, tech stack, constraints |
.github/agent/coding-standards.md |
Language, framework, conventions |
.github/agent/workflows.md |
Project name, module list |
.github/agent/memory/project-memory.md |
All project facts |
.github/agent/memory/decisions-log.md |
Initial ADR |
.github/agent/memory/task-history.md |
TASK-001 bootstrap |
bash ~/tools/ai-coding-ok/scripts/verify.sh .| Exit code | Meaning |
|---|---|
0 |
Perfect — all files present, no placeholders |
1 |
Missing files — re-run install |
2 |
Unfilled placeholders — re-paste customize-prompt.md |
See Installation Verification for details.
git add AGENTS.md CLAUDE.md .github/
git commit -m "chore: install ai-coding-ok framework"All team members using Copilot will now automatically share the same project memory.
Copilot automatically reads .github/copilot-instructions.md at the start of every session. This file contains:
- PDCA enforcement rules — Copilot must read memory files before coding and update them after
- Coding standards — language-specific conventions
-
Output format requirements — including mandatory
## Memory Updatessection
Because Copilot auto-loads this file, no manual trigger is needed — PDCA runs on every task.
v3.0.1+: The output format section now requires a mandatory
## Memory Updatessection in every response. Copilot cannot skip the Act phase.
To upgrade ai-coding-ok in a Copilot project:
- Pull the latest framework:
cd ~/tools/ai-coding-ok && git pull - Paste
scripts/upgrade-prompt.mdinto Copilot Chat - Copilot will merge framework changes while preserving your project customizations
See Upgrade ai-coding-ok for details.
Make sure .github/copilot-instructions.md exists and starts with the PDCA enforcement block. If Copilot still skips it, manually remind it:
Follow the PDCA instructions in .github/copilot-instructions.md.
Read the memory files first, then proceed.
Cursor has its own install path. See Cursor Installation.
Yes. The same .github/ files work for both. Install ai-coding-ok once, and both tools pick up the memory system automatically.
🧠 ai-coding-ok — AI 编程的 PDCA 记忆闭环。
GitHub · Issues · MIT License