Skip to content

Commit cd6877d

Browse files
committed
chore: update database configuration to use PostgreSQL
1 parent 8349df3 commit cd6877d

2 files changed

Lines changed: 31 additions & 9 deletions

File tree

.ccg.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
db:
2-
driver: sqlite # sqlite | postgres
3-
dsn: ccg.db
2+
# driver: sqlite # sqlite | postgres/
3+
driver: postgres
4+
dsn: "host=localhost user=postgres password=postgres dbname=ccg_test sslmode=disable"
45

56
namespace: default
67

AGENTS.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Graceful shutdown: SIGINT/SIGTERM propagates context cancellation to in-progress
2727

2828
## Agent Skills (5)
2929

30-
| Skill | Description |
31-
| ---------------- | ------------------------------------------------------------------------------------------- |
32-
| `/ccg` | Core build and search: parsing, graph build, query, search |
33-
| `/ccg-analyze` | Code analysis: impact radius, flow tracing, dead code, architecture |
34-
| `/ccg-annotate` | Annotation system: AI annotation workflow and tag reference |
35-
| `/ccg-docs` | Documentation: doc generation, RAG indexing, lint |
36-
| `/ccg-namespace` | Namespace file management: upload, list, delete |
30+
| Skill | Description |
31+
| ---------------- | ------------------------------------------------------------------- |
32+
| `/ccg` | Core build and search: parsing, graph build, query, search |
33+
| `/ccg-analyze` | Code analysis: impact radius, flow tracing, dead code, architecture |
34+
| `/ccg-annotate` | Annotation system: AI annotation workflow and tag reference |
35+
| `/ccg-docs` | Documentation: doc generation, RAG indexing, lint |
36+
| `/ccg-namespace` | Namespace file management: upload, list, delete |
3737

3838
Skill files are located under `skills/` and are written so coding agents such as Codex and Claude Code
3939
can use them as slash-command style workflows.
@@ -120,3 +120,24 @@ CGO_ENABLED=1 go test -tags "fts5" ./... -count=1
120120

121121
For documentation-only changes, prioritize regenerating docs with `ccg docs` and running `ccg lint`.
122122
Code tests may be skipped depending on the change scope.
123+
124+
## Skill Routing
125+
126+
- When writing, modifying, or reviewing code, apply `coding-quality-guardrails` as the quality gate.
127+
- When debugging bugs, regressions, flaky behavior, or failing tests, use `diagnosing-bugs` before changing behavior.
128+
- Before implementing new logic with branching, side effects, resource lifecycles, or ordering constraints, use `flow-design` and keep the design note in the task workspace.
129+
- When designing module boundaries, refactoring, or shaping interfaces, use `codebase-design`.
130+
- When aligning terminology or modeling the domain, use `domain-modeling`.
131+
- When a plan is fuzzy, high-impact, or lacks testable acceptance criteria, use `planning-grill` to sharpen scope, acceptance, and failure modes before decomposing it.
132+
- For multi-step or multi-agent work, use `decompose-and-dispatch` to split the work into bounded units. Use `execute-dispatch-unit` only for a clearly assigned unit with scope, dependencies, and verification.
133+
- When preparing context for human or AI code review, use `ready-code-review`; do not use it to perform the review itself.
134+
- To record a session, distill completed work into a replayable recipe, or replay a `recipe.yaml`, use `session-recipe`.
135+
136+
## agent-team Routing
137+
138+
agent-team bundles its own skills; restrict them as follows so methodology stays single-sourced:
139+
140+
- Use only agent-team's CLI operation skills (the `agent-team-*` prefix: run/task/message/inbox/sync/event commands), and load `agent-team-shared` before any command-specific one — it defines the state directory, global flags, and error handling they all assume. Never use its `recipe-*` and `persona-*` skills — the skills routed above own all methodology, even where an excluded skill looks like a closer match (worker checkpoints → `execute-dispatch-unit`'s Ledger Checkpoints; plan sharpening / `recipe-agent-team-planning-grill``planning-grill`; decomposition → `decompose-and-dispatch`; architecture → `codebase-design`; terminology → `domain-modeling`).
141+
- When executing an assigned unit, follow `execute-dispatch-unit` for scope, verification, and reporting; its Ledger Checkpoints section defines which `agent-team-*` calls to make.
142+
- When planning, `decompose-and-dispatch` owns decomposition and executor mapping, and its Durable Ledger section defines the run/task registration calls.
143+
- Do not route by the word "recipe": here it means a replayable session recipe (`session-recipe`, `recipe.yaml`); agent-team's `recipe-*` skills are excluded above.

0 commit comments

Comments
 (0)