knowledge-routing
When deciding where to store a piece of knowledge (memory files vs Confluence vs Jira). Use when about to document something, capture a lesson, create a ticket, or publish a decision.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 13
- Forks
- 3
01 前言 Front Matter
- name
- knowledge-routing
- license
- MIT
- description
- When deciding where to store a piece of knowledge (memory files vs Confluence vs Jira). Use when about to document something, capture a lesson, create a ticket, or publish a decision.
03 SKILL.md 正文
Knowledge Routing
Purpose: Three layers exist — pick the right one.
The three layers
| Layer | Where it lives | Who owns it |
|---|---|---|
| Agent operational state | .memory/ in repo |
Agent, shared via git |
| Team-canonical knowledge | Confluence | Humans (tech leads, product) |
| Tracked work | Jira | Team |
Decision table
| Knowledge type | Destination | Why |
|---|---|---|
| Codebase structure (modules, classes, functions) | .memory/MAP.md, .memory/SYMBOLS.md |
Agent reads every session |
| Session state, what's next | .memory/RESUME.md |
Local-only, session handoff |
| Coding conventions (naming, style, patterns) | .memory/CONVENTIONS.md |
Read by every session |
| Agent lessons learned (mistakes to avoid) | .memory/LESSONS.md |
Small, agent-facing |
| Sacred behaviors (code that looks wrong but shouldn't change) | .memory/SACRED.md |
Small, agent-facing |
| Team roster and roles | .memory/TEAM.md |
Read during handoffs |
| Jira workflow conventions | .memory/JIRA_WORKFLOW.md |
Read before Jira writes |
| Tech debt findings | .memory/TECH_DEBT.md + optional Jira ticket |
Local record + tracked when actionable |
| Architectural decisions (ADRs) | Confluence (ADRs parent) + link in LESSONS.md | Team-canonical, durable |
| Post-mortems | Confluence (Postmortems parent) | Team-visible, searchable |
| Runbooks | Confluence (Runbooks parent) | Referenced during incidents |
| Feature specifications | Confluence (Specs parent) | Human-authored and -reviewed |
| Release notes | Confluence (or GitHub release) | External audience |
| Tracked work (features, bugs, debt being worked) | Jira | Lifecycle-tracked by team |
The rule
- Operational / per-agent →
.memory/ - Team-canonical / durable / referenced by humans → Confluence
- Lifecycle-tracked work → Jira
Cross-layer linking
When knowledge spans layers, cross-reference:
- ADR in Confluence → add one-line entry in
.memory/LESSONS.mdwith the Confluence link. So agents recall the decision without loading the full ADR. - Tech debt in TECH_DEBT.md → add
Ticket: PROJ-1234column when a Jira ticket tracks the work. - PR description → reference ticket key and link to Confluence spec if applicable.
When to ask vs auto-decide
- Auto-apply: agent operational state (MAP, SYMBOLS, RESUME, LESSONS about agent mistakes, CONVENTIONS observed).
- Ask user: creating Jira tickets, publishing to Confluence, ADR decisions. These are team-visible — don't surprise the team.
- Config-driven: transitions, reassignments per
.memory/JIRA_WORKFLOW.md(if set up). Auto-apply per config; ask for anything not covered.
What NOT to do
- Don't duplicate canonical knowledge into
.memory/. If an ADR exists in Confluence, link to it from LESSONS.md — don't copy it. - Don't put agent operational state in Confluence. MAP.md and SYMBOLS.md belong in memory; they change constantly.
- Don't file a Jira ticket for every finding. Tech debt that's small + local stays in TECH_DEBT.md. Tickets are for work the team plans to schedule.
No gate. This is an advisory skill — apply judgment when deciding where knowledge belongs.
04 同仓库更多 Skills
setup-project
When setting up agentskel on a new project that does not yet have .memory/ or .agents/. Use when the user says "set up agentskel", "install agentskel", or "add agent memory to this project".
using-git-worktrees
When running long feature implementations, parallel branch work, or build/test scripts that must not interfere with the user's active working directory. Creates isolated execution environments via git worktrees in sibling directories.
test-engineer
When designing test strategy, analysing coverage, or writing tests outside the TDD cycle. Also use when working with CI pipelines or validating changes end-to-end.
test-driven-development
When implementing logic changes during develop-feature or implement-task. Use the Red-Green-Refactor cycle to write a failing test before any production code.
task-planner
When decomposing a feature or spec into implementable subtasks, estimating scope, or orchestrating multi-step work across subagents.
systematic-debugger
When applying debugging techniques during any investigation — root cause tracing, bisect, defense-in-depth. Enforces hypothesis-first analysis and prohibits guess-and-check changes. Use standalone or inside the debug-issue workflow.