Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/XposeMarket/PromSRC --skill json-and-config-surgery명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Render a live inline Chart.js chart in chat when the user asks to chart, graph, plot, or visualize numeric data, KPI trends, comparisons, distributions, or correlations. Use only for inline charts; do not save files or use this for dashboards, interactive apps, or presentation decks.
Diagnose an existing MCP server, preset, connection, discovery, authentication, schema, transport, or tool-execution failure. Use for MCP operations and recovery; use mcp-server-builder to create/register a new MCP server and integration-setup for broader service setup.
Apply the current Prometheus One visual identity: a sleek, premium black-and-gold local AI command-center system across product UI, mobile, website, releases, and creative work.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | json-and-config-surgery |
| description | null |
| emoji | 🧩 |
| version | 1.0.0 |
JSON files are not line-safe. Never use edit() (replace_lines) on a JSON file. One misplaced comma or bracket corrupts the entire file silently.
The only safe pattern is: Read → Parse → Modify → Validate → Write.
read → understand the full structure → construct corrected JSON → write the whole file back
This applies to every Prometheus JSON file without exception.
| File | Path | What it controls |
|---|---|---|
| Main config | D:\Prometheus\.prometheus\config.json | Models, gateway, tools, agents[], workspace path |
| Managed teams | D:\Prometheus\.prometheus\managed-teams.json | Team definitions, subagent IDs, manager config, chat |
| Cron jobs | D:\Prometheus\.prometheus\cron\jobs.json | All scheduled jobs (source of truth) |
| Heartbeat config | D:\Prometheus\.prometheus\heartbeat\config.json | Per-agent heartbeat enable/interval |
| Integrations state | D:\Prometheus\.prometheus\integrations-state.json | MCP server connection status |
| Skills state | D:\Prometheus\workspace\skills\_state.json | Installed skill metadata |
read(".prometheus/config.json")
Read the entire file. Understand the full structure before touching anything. Identify:
Before writing, review your constructed JSON mentally:
{ has a matching }[ has a matching ]Common mistakes that break JSON:
// WRONG — trailing comma
{ "a": 1, "b": 2, }
// WRONG — unquoted string
{ "name": hello }
// WRONG — missing comma between fields
{ "a": 1 "b": 2 }
// WRONG — single quotes
{ 'name': 'value' }
write(".prometheus/config.json", "<full corrected JSON>")
Write the complete file, not just the changed section.
read(".prometheus/config.json")
Confirm the file is valid and the change is correct.
// Current agents array:
"agents": [
{ "id": "agent_a", "name": "Agent A", ... }
]
// After adding agent_b — note NO trailing comma after last item:
"agents": [
{ "id": "agent_a", "name": "Agent A", ... },
{ "id": "agent_b", "name": "Agent B", "description": "...", "maxSteps": 15 }
]
Always prefer spawn_subagent() for creating agents — it handles config registration automatically. Only edit config.json directly for targeted patches.
// Find the job by ID, update just the "schedule" field
// Leave all other fields exactly as they are
{
"id": "job_abc123",
"name": "X Poster",
"schedule": "0 9 * * *", // change this
"prompt": "...", // leave this
"enabled": true // leave this
}
Always prefer schedule_job({ action: "update", job_id: "...", ... }) for schedule changes. The tool handles validation and hot-reload. Only edit jobs.json directly if the tool is unavailable.
managed-teams.json is large and nested. Be extra careful:
idAlways prefer team_manage() for team changes. Direct JSON edits bypass the in-memory cache invalidation — the change may not take effect until gateway restart.
After writing any JSON file, validate it immediately:
powershell -Command "try { Get-Content '.prometheus\config.json' | ConvertFrom-Json; Write-Output 'VALID' } catch { Write-Output 'INVALID: ' + $_.Exception.Message }"
If it returns INVALID, you have a syntax error. Read the file again, find the error, fix it, rewrite.
For config.json or managed-teams.json (the two most critical files), always back up before a large edit:
shell("copy D:\Prometheus\.prometheus\config.json D:\Prometheus\.prometheus\config.json.bak")
If the write goes wrong, the backup is your recovery path.
| File corrupted | Effect |
|---|---|
config.json | Gateway fails to start. Prometheus is down until fixed. |
managed-teams.json | Teams panel broken. Teams may reset to defaults. |
cron/jobs.json | All scheduled jobs disappear on next gateway restart. |
heartbeat/config.json | Heartbeat falls back to defaults. Agents may stop ticking. |
Recovery: Restore from .bak backup, or reconstruct from the gateway error logs which will show a JSON parse error with the line number.
All Prometheus JSON files use 2-space indentation. Match this when writing:
{
"key": "value",
"nested": {
"inner": "value"
},
"array": [
"item1",
"item2"
]
}
Not 4-space, not tabs, not minified. Consistent formatting makes diffs readable and avoids unnecessary git noise.
| Situation | Use tool | Use direct file edit |
|---|---|---|
| Create/update agent | spawn_subagent() | Only for targeted patches tool can't do |
| Create/update schedule | schedule_job() | Only if tool unavailable |
| Update team config | team_manage() | Only if tool unavailable |
| Update heartbeat | update_heartbeat() | Only if tool unavailable |
| Add a custom field not exposed by any tool | — | Direct edit (with backup) |
Rule: Prefer tools. They validate inputs, handle cache invalidation, and reload live state. Direct JSON edits are a last resort.