Claude Code hook

PRD Driven Context Engineering

PRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks.

181 stars 11 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add mattgierhart/PRD-driven-context-engineering

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/mattgierhart/PRD-driven-context-engineering.git

From the README

PRD-Led Context Engineering

Memory as Infrastructure — an operating system for building products with AI agents

*Your AI partner is brilliant in one session and amnesiac by the next. This repository is the fix:
a fork-ready methodology that turns documentation into a knowledge graph humans and AI navigate
together — so the 50th session is smarter than the 1st.*

Quick Start · The Idea ·
The Lifecycle · The Skills ·
Live Demo Views

⭐ If this changes how you build with AI, star the repo — stars put this method in front of the next team drowning in context drift.

The Problem: AI forgets. Teams drift.

Every era of software solved memory its own way — and broke it its own way:

- Waterfall had Static Memory. Write everything down upfront: certainty, at the cost of change.
- Agile moved fast and created Fragmented Memory. Knowledge scattered across tickets, wikis, and chats; shared understanding evaporated.
- AI-assisted building adds a third failure: Amnesiac Memory. The model that architected your system yesterday has never heard of it today.

The common mistake is treating these as tooling problems. They are *memory* problems.

PRD-Led Context Engineering builds Shared Memory: it treats AI as a team member, not a tool, and keeps documentation synchronized with code so humans and AI navigate the same truth.

The Idea: Memory as Infrastructure

This methodology comes from two converging experiences.

Leading human teams — alignment always followed the same pattern: rally around a single Source-of-Truth artifact and the team moves as one. Without it, even great talent drifts.

Partnering with AI — sometimes the model performs at a senior level, sometimes it hallucinates. The variable was never the model's intelligence. It was the Context Density provided: rich,…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
HTML
License
MIT
Last updated
31 August 2026
Topics
agent-skillsagentic-codingai-agentsai-assistedclaudeclaude-codeclaude-code-skillscontext-engineeringdeveloper-toolsprdproduct-developmentproduct-management

FAQ

What is PRD Driven Context Engineering?

PRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks. It is a hook for Claude Code, from mattgierhart/PRD-driven-context-engineering on GitHub.

How do I install PRD Driven Context Engineering?

Run /plugin marketplace add mattgierhart/PRD-driven-context-engineering inside Claude Code, then follow the setup in the README.

Is PRD Driven Context Engineering popular?

mattgierhart/PRD-driven-context-engineering has 181 GitHub stars and 11 forks. It was last updated on 31 August 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.