Skip to content

mrballistic/copilot-memory-bank-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Copilot Memory Bank Template

A template to turn GitHub Copilot into a goal-oriented, memory-persistent coding assistant β€” inspired by AWS Kiro.

Use this setup to guide Copilot from spec β†’ design β†’ tasks β†’ tested code while maintaining project context across sessions.

πŸ“ Read the full Medium article:
Beyond Autocomplete: Give Copilot a Memory and a Brain

And the followup: From Prompt to Product


🧩 What's Inside

.github/

  • copilot-instructions.md β€” Tiny bootstrap that tells Copilot to use the memory bank and follow the Kiro-Lite process
  • prompts/kiro-lite.prompt.md β€” A multi-phase, slash-command-based prompt that emulates Kiro’s spec-driven workflow

memory-bank/

  • memory-bank-instructions.md β€” Defines the memory system, file structure, workflows, and update process
  • copilot-rules.md β€” Captures project constraints, rules, and security policies
  • Core context files:
    • projectbrief.md
    • productContext.md
    • systemPatterns.md
    • techContext.md
    • activeContext.md
    • progress.md
  • feature-template/ β€” A starter folder for scoped PRD/design/task files (copied by Copilot during /start feature)

🚦 Supported Slash Commands

Copilot only acts when triggered with these:

Command Purpose
/start feature <name> Initializes folder + memory files
/approve prd Locks PRD and moves to design
/approve design Locks design and moves to task breakdown
/approve tasks Locks task plan and allows coding
/implement <TASK_ID> Generates code + tests for a single task
/review complete Confirms task is done
/update memory bank Refreshes context and progress files

βœ… How to Use

  1. 🧠 Clone the repo
  2. πŸ”Œ Add .github/copilot-instructions.md to your working repo
  3. πŸ“ Copy the /memory-bank/ structure and fill in your context
  4. πŸ’¬ Paste the kiro-lite.prompt.md into Copilot Chat
  5. πŸš€ Start building with /start feature <name>

πŸ“Έ Example Session

/start feature auth-login
# Copilot creates: /memory-bank/auth-login/{prd.md, design.md, ...}

[ you describe the PRD ]

/approve prd
# Copilot writes design.md

/approve design
# Copilot writes tasks.md

/implement AUTH-1
# Copilot generates file diff + tests

πŸ§ͺ Want to extend it?

  • Add /memory-bank/commands.md as a cheatsheet
  • Use GitHub Actions to validate memory structure on PRs
  • Build an onboarding doc for new team members

πŸ“– License

MIT β€” use it, fork it, remix it. Just don’t let your assistant commit secrets. πŸ˜‰

About

A quick template for better memory bank behavior from Github Copilot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published