| name | code-research-configuration |
| description | configure Pi Code Research project graph enablement only: .pi/code-research.json graph.enable/addGitignore, workspace_graph_status verification, and generated .pi/workspace-code-graph handling. |
| license | Apache-2.0 |
| metadata | {"author":"j0k3r","version":"1.0"} |
Code Research Configuration
Registry Contract
Use this block as the machine-readable source for .pi/skill-registry.json generation. Keep it valid JSON.
{
"category": "workflow",
"domains": ["code-research-configuration", "workspace-graph", "code-research-json"],
"triggers": {
"paths": [
".pi/code-research.json",
".pi/workspace-code-graph/**",
"skills/code-research-configuration/SKILL.md",
"~/.pi/agent/skills/code-research-configuration/SKILL.md"
],
"keywords": [
"code research configuration",
"code research config",
"code-research.json",
"workspace graph",
"workspace-code-graph",
"activate graph",
"enable graph",
"graph.enable",
"graph disabled",
"workspace_graph_status"
]
},
"sdd_phases": ["explore", "task", "apply", "verify"],
"related_skills": ["workflow-triage"],
"priority": 85
}
Activation Contract
Use this skill only when the user asks to configure the Pi Code Research workspace graph for a project.
Use cases:
- create or edit
.pi/code-research.json;
- enable or disable
graph.enable;
- set
graph.addGitignore;
- verify graph configuration with
workspace_graph_status;
- decide what to do with generated
.pi/workspace-code-graph artifacts.
Do not use this skill for source-code research, symbol lookup, references, call trees, implementation, refactors, or debugging application behavior.
Hard Rules
- Configuration only. Do not edit application source code, tests, SDD artifacts, or unrelated agent policy.
- Do not enable or disable the graph unless the user explicitly asks or approves it.
- Configure the project, not the extension source: use
<project>/.pi/code-research.json.
- Preserve unrelated existing config keys.
- Minimal enabled config:
{
"graph": {
"enable": true,
"addGitignore": true
}
}
.pi/workspace-code-graph is generated data. Do not hand-edit it.
- Do not commit generated graph artifacts unless the user explicitly asks.
Decision Gates
- If the project root is unclear, ask for it.
- If
.pi/code-research.json already exists, read it before editing.
- Ask before deleting, ignoring, or committing
.pi/workspace-code-graph.
- If the request stops being configuration-only, stop and route through
workflow-triage.
Execution Steps
- Identify the target project root.
- Read existing
.pi/code-research.json if present.
- Apply only the requested
graph config change.
- Validate JSON.
- Run
workspace_graph_status when available.
- If status does not reflect the change, tell the user to restart/reload Pi from the project root.
Output Contract
Return:
- Skill applied:
code-research-configuration.
- Project config path changed or inspected.
- Final
graph.enable and graph.addGitignore values.
- Whether
.pi/workspace-code-graph was touched.
workspace_graph_status result or why it was not run.
- Any reload step or open decision.
References
~/.pi/agent/extensions/code-research/README.md — source for .pi/code-research.json, graph enablement, generated graph path, and status behavior.