@ai-support-agent/cli 0.1.32 → 0.1.33-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/claude-code-args.d.ts +1 -0
- package/dist/commands/claude-code-args.d.ts.map +1 -1
- package/dist/commands/claude-code-args.js +3 -0
- package/dist/commands/claude-code-args.js.map +1 -1
- package/dist/commands/claude-code-runner.d.ts.map +1 -1
- package/dist/commands/claude-code-runner.js +2 -1
- package/dist/commands/claude-code-runner.js.map +1 -1
- package/dist/commands/plugin-dir.d.ts +20 -0
- package/dist/commands/plugin-dir.d.ts.map +1 -0
- package/dist/commands/plugin-dir.js +71 -0
- package/dist/commands/plugin-dir.js.map +1 -0
- package/dist/plugin/.claude-plugin/plugin.json +9 -0
- package/dist/plugin/LICENSE +26 -0
- package/dist/plugin/README.md +86 -0
- package/dist/plugin/SYNC.md +113 -0
- package/dist/plugin/agents/build-error-resolver.md +159 -0
- package/dist/plugin/agents/code-reviewer.md +277 -0
- package/dist/plugin/agents/django-reviewer.md +159 -0
- package/dist/plugin/agents/infra-reviewer.md +172 -0
- package/dist/plugin/agents/investigator.md +75 -0
- package/dist/plugin/agents/nextjs-reviewer.md +191 -0
- package/dist/plugin/agents/php-reviewer.md +167 -0
- package/dist/plugin/agents/planner.md +184 -0
- package/dist/plugin/agents/python-reviewer.md +161 -0
- package/dist/plugin/agents/react-reviewer.md +150 -0
- package/dist/plugin/agents/silent-failure-hunter.md +158 -0
- package/dist/plugin/agents/typescript-reviewer.md +179 -0
- package/dist/plugin/agents/ui-reviewer.md +203 -0
- package/dist/plugin/commands/add-feature.md +301 -0
- package/dist/plugin/commands/build-fix.md +47 -0
- package/dist/plugin/commands/code-review.md +228 -0
- package/dist/plugin/commands/fix-defect.md +393 -0
- package/dist/plugin/commands/learn-eval.md +94 -0
- package/dist/plugin/commands/learn.md +84 -0
- package/dist/plugin/commands/plan.md +211 -0
- package/dist/plugin/commands/test-coverage.md +64 -0
- package/dist/plugin/commands/update-docs.md +98 -0
- package/dist/plugin/hooks/hooks.json +59 -0
- package/dist/plugin/hooks/scripts/auto-format.sh +63 -0
- package/dist/plugin/hooks/scripts/check-secrets-before-commit.sh +50 -0
- package/dist/plugin/hooks/scripts/guard-dangerous-commands.sh +55 -0
- package/dist/plugin/hooks/scripts/on-command-resume.sh +112 -0
- package/dist/plugin/hooks/scripts/on-command-stop.sh +200 -0
- package/dist/plugin/hooks/scripts/protect-sensitive-files.sh +58 -0
- package/dist/plugin/rules/common/coding-guidelines.md +73 -0
- package/dist/plugin/rules/documentation/api-docs.md +46 -0
- package/dist/plugin/rules/documentation/docs-site.md +60 -0
- package/dist/plugin/rules/documentation/source-docs.md +89 -0
- package/dist/plugin/rules/documentation/test-docs.md +39 -0
- package/dist/plugin/rules/logging/logging-rules.md +83 -0
- package/dist/plugin/rules/php/coding-rules.md +40 -0
- package/dist/plugin/rules/python/coding-rules.md +40 -0
- package/dist/plugin/rules/typescript/coding-rules.md +45 -0
- package/dist/plugin/skills/api-design/SKILL.md +269 -0
- package/dist/plugin/skills/backend-patterns/SKILL.md +312 -0
- package/dist/plugin/skills/database-migrations/SKILL.md +323 -0
- package/dist/plugin/skills/docker-patterns/SKILL.md +308 -0
- package/dist/plugin/skills/docs-site/SKILL.md +341 -0
- package/dist/plugin/skills/e2e-testing/SKILL.md +334 -0
- package/dist/plugin/skills/frontend-patterns/SKILL.md +318 -0
- package/dist/plugin/skills/integration-testing/SKILL.md +273 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-args.d.ts","sourceRoot":"","sources":["../../src/commands/claude-code-args.ts"],"names":[],"mappings":"AASA,wBAAgB,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAStD;AAED,qBAAqB;AACrB,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,0BAA0B;AAC1B,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"claude-code-args.d.ts","sourceRoot":"","sources":["../../src/commands/claude-code-args.ts"],"names":[],"mappings":"AASA,wBAAgB,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAStD;AAED,qBAAqB;AACrB,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,0BAA0B;AAC1B,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GACA,MAAM,EAAE,CAwDV"}
|
|
@@ -32,6 +32,9 @@ function _resetCleanEnvCache() {
|
|
|
32
32
|
/** Claude CLI の引数配列を構築 */
|
|
33
33
|
function buildClaudeArgs(message, options) {
|
|
34
34
|
const args = ['-p', '--output-format', 'stream-json', constants_1.CLI_FLAG_VERBOSE];
|
|
35
|
+
if (options?.pluginDir) {
|
|
36
|
+
args.push('--plugin-dir', options.pluginDir);
|
|
37
|
+
}
|
|
35
38
|
// モデルは呼び出し側(runClaudeCode)で「JSON設定 > env > デフォルト」の
|
|
36
39
|
// 優先順位に基づき解決済みの値を渡す。ここでは渡された値があれば付与し、
|
|
37
40
|
// 未指定(undefined / 空文字)なら付けない(CLI に ANTHROPIC_MODEL env を
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-args.js","sourceRoot":"","sources":["../../src/commands/claude-code-args.ts"],"names":[],"mappings":";;;;;AASA,sCASC;AAGD,kDAEC;AAGD,
|
|
1
|
+
{"version":3,"file":"claude-code-args.js","sourceRoot":"","sources":["../../src/commands/claude-code-args.ts"],"names":[],"mappings":";;;;;AASA,sCASC;AAGD,kDAEC;AAGD,0CAmEC;AA7FD,4CAAmB;AAEnB,4CAA+C;AAE/C;;6BAE6B;AAC7B,IAAI,cAAc,GAAkC,IAAI,CAAA;AAExD,SAAgB,aAAa;IAC3B,IAAI,cAAc;QAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAA;IAChD,MAAM,QAAQ,GAA2B,EAAE,CAAA;IAC3C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvD,IAAI,GAAG,KAAK,YAAY,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,GAAG,KAAK,yBAAyB,CAAC;YAAE,SAAQ;QAC3G,IAAI,KAAK,KAAK,SAAS;YAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IAChD,CAAC;IACD,cAAc,GAAG,QAAQ,CAAA;IACzB,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAA;AACxB,CAAC;AAED,qBAAqB;AACrB,SAAgB,mBAAmB;IACjC,cAAc,GAAG,IAAI,CAAA;AACvB,CAAC;AAED,0BAA0B;AAC1B,SAAgB,eAAe,CAC7B,OAAe,EACf,OAQC;IAED,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,iBAAiB,EAAE,aAAa,EAAE,4BAAgB,CAAC,CAAA;IACvE,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,cA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C,CAAC;IACD,IAAI,OAAO,EAAE,aAAa,EAAE,CAAC;QAC3B,WAAW,CAAC,IAAI,CAAC;YACf,8BAA8B;YAC9B,uHAAuH;YACvH,wFAAwF;YACxF,sCAAsC;YACtC,0DAA0D;YAC1D,qDAAqD;YACrD,+DAA+D;YAC/D,0DAA0D;YAC1D,4DAA4D;YAC5D,2EAA2E;SAC5E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACf,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3B,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IAC/D,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAClB,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-runner.d.ts","sourceRoot":"","sources":["../../src/commands/claude-code-runner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAO7C,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"claude-code-runner.d.ts","sourceRoot":"","sources":["../../src/commands/claude-code-runner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAO7C,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAKlF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACnF,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAEvG,4BAA4B;AAC5B,MAAM,WAAW,gBAAg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C7B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,gBAAgB,CAwK7E"}
|
|
@@ -11,6 +11,7 @@ const claude_json_oauth_sync_1 = require("../utils/claude-json-oauth-sync");
|
|
|
11
11
|
const stream_parser_1 = require("../utils/stream-parser");
|
|
12
12
|
const claude_code_args_1 = require("./claude-code-args");
|
|
13
13
|
const claude_code_stream_1 = require("./claude-code-stream");
|
|
14
|
+
const plugin_dir_1 = require("./plugin-dir");
|
|
14
15
|
const utils_1 = require("../utils");
|
|
15
16
|
// Re-export for backward compatibility
|
|
16
17
|
var claude_code_args_2 = require("./claude-code-args");
|
|
@@ -70,7 +71,7 @@ function runClaudeCode(options) {
|
|
|
70
71
|
const resolvedModel = explicitModel
|
|
71
72
|
? explicitModel
|
|
72
73
|
: (envModel ? undefined : constants_1.DEFAULT_CLAUDE_MODEL);
|
|
73
|
-
const args = (0, claude_code_args_1.buildClaudeArgs)(message, { allowedTools, addDirs, locale, mcpConfigPath, systemPrompt, model: resolvedModel });
|
|
74
|
+
const args = (0, claude_code_args_1.buildClaudeArgs)(message, { allowedTools, addDirs, locale, mcpConfigPath, systemPrompt, model: resolvedModel, pluginDir: (0, plugin_dir_1.resolveValidPluginDir)() ?? undefined });
|
|
74
75
|
// どの経路でモデルが決まったかをログ出力し、「--model が付かなかった理由
|
|
75
76
|
// (env 尊重 vs バグ)」をログだけで判別できるようにする。
|
|
76
77
|
if (explicitModel) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-runner.js","sourceRoot":"","sources":["../../src/commands/claude-code-runner.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"claude-code-runner.js","sourceRoot":"","sources":["../../src/commands/claude-code-runner.ts"],"names":[],"mappings":";;;AA+EA,sCAwKC;AAvPD,iDAAqC;A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|
+
/**
|
|
2
|
+
* 同梱の Claude Code プラグインディレクトリを解決する。
|
|
3
|
+
* src/commands/ から見て src/plugin/(ビルド後は dist/commands/ から見て
|
|
4
|
+
* dist/plugin/)を指す設計。
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveBundledPluginDir(): string;
|
|
7
|
+
/**
|
|
8
|
+
* 指定ディレクトリが有効な Claude Code プラグインかどうかを判定する。
|
|
9
|
+
* `.claude-plugin/plugin.json` の存在有無で判定する。
|
|
10
|
+
*/
|
|
11
|
+
export declare function isPluginDirValid(dir: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 有効な同梱プラグインディレクトリを解決する。
|
|
14
|
+
* ビルド成果物にプラグインが同梱されていない(ビルド不備)場合は警告を
|
|
15
|
+
* ログ出力し null を返す。呼び出しごとに再評価する(キャッシュしない)。
|
|
16
|
+
*
|
|
17
|
+
* `dir` はテスト用の差し替えフック(省略時は resolveBundledPluginDir())。
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveValidPluginDir(dir?: string): string | null;
|
|
20
|
+
//# sourceMappingURL=plugin-dir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-dir.d.ts","sourceRoot":"","sources":["../../src/commands/plugin-dir.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,GAAE,MAAkC,GAAG,MAAM,GAAG,IAAI,CAM5F"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.resolveBundledPluginDir = resolveBundledPluginDir;
|
|
37
|
+
exports.isPluginDirValid = isPluginDirValid;
|
|
38
|
+
exports.resolveValidPluginDir = resolveValidPluginDir;
|
|
39
|
+
const fs = __importStar(require("fs"));
|
|
40
|
+
const path = __importStar(require("path"));
|
|
41
|
+
const logger_1 = require("../logger");
|
|
42
|
+
/**
|
|
43
|
+
* 同梱の Claude Code プラグインディレクトリを解決する。
|
|
44
|
+
* src/commands/ から見て src/plugin/(ビルド後は dist/commands/ から見て
|
|
45
|
+
* dist/plugin/)を指す設計。
|
|
46
|
+
*/
|
|
47
|
+
function resolveBundledPluginDir() {
|
|
48
|
+
return path.join(__dirname, '..', 'plugin');
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 指定ディレクトリが有効な Claude Code プラグインかどうかを判定する。
|
|
52
|
+
* `.claude-plugin/plugin.json` の存在有無で判定する。
|
|
53
|
+
*/
|
|
54
|
+
function isPluginDirValid(dir) {
|
|
55
|
+
return fs.existsSync(path.join(dir, '.claude-plugin', 'plugin.json'));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 有効な同梱プラグインディレクトリを解決する。
|
|
59
|
+
* ビルド成果物にプラグインが同梱されていない(ビルド不備)場合は警告を
|
|
60
|
+
* ログ出力し null を返す。呼び出しごとに再評価する(キャッシュしない)。
|
|
61
|
+
*
|
|
62
|
+
* `dir` はテスト用の差し替えフック(省略時は resolveBundledPluginDir())。
|
|
63
|
+
*/
|
|
64
|
+
function resolveValidPluginDir(dir = resolveBundledPluginDir()) {
|
|
65
|
+
if (isPluginDirValid(dir)) {
|
|
66
|
+
return dir;
|
|
67
|
+
}
|
|
68
|
+
logger_1.logger.warn(`[plugin-dir] bundled plugin not found at ${dir} (build defect) — skipping --plugin-dir`);
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=plugin-dir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-dir.js","sourceRoot":"","sources":["../../src/commands/plugin-dir.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,0DAEC;AAMD,4CAEC;AASD,sDAMC;AAnCD,uCAAwB;AACxB,2CAA4B;AAE5B,sCAAkC;AAElC;;;;GAIG;AACH,SAAgB,uBAAuB;IACrC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;AAC7C,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,GAAW;IAC1C,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAA;AACvE,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,MAAc,uBAAuB,EAAE;IAC3E,IAAI,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,eAAM,CAAC,IAAI,CAAC,4CAA4C,GAAG,yCAAyC,CAAC,CAAA;IACrG,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-support-agent",
|
|
3
|
+
"description": "A collection of Claude Code agents, commands, skills, and safety hooks for AI-assisted software development, bundled by default with ai-support-agent-cli.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": { "name": "AI Support Agent Contributors" },
|
|
6
|
+
"homepage": "https://github.com/mbc-net/ai-support-agent-cli",
|
|
7
|
+
"repository": "https://github.com/mbc-net/ai-support-agent-cli",
|
|
8
|
+
"license": "MIT"
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
This plugin is derived from mbc-net/mbc-claude-code (commit
|
|
2
|
+
3f94f4aa9ab03f6cc1d132f478be71a0b99d123c), translated into English and
|
|
3
|
+
generalized for open-source use with the original copyright holder's
|
|
4
|
+
consent. The MIT License below applies to this derived work.
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 AI Support Agent Contributors
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# ai-support-agent (Claude Code plugin)
|
|
2
|
+
|
|
3
|
+
A general-purpose toolkit of Claude Code agents, commands, skills, and safety
|
|
4
|
+
hooks for AI-assisted software development. It is not tied to any specific
|
|
5
|
+
company or proprietary stack.
|
|
6
|
+
|
|
7
|
+
Based on and translated/generalized from
|
|
8
|
+
[mbc-net/mbc-claude-code](https://github.com/mbc-net/mbc-claude-code).
|
|
9
|
+
|
|
10
|
+
## What's included
|
|
11
|
+
|
|
12
|
+
### Agents (13)
|
|
13
|
+
|
|
14
|
+
- planner
|
|
15
|
+
- code-reviewer
|
|
16
|
+
- typescript-reviewer
|
|
17
|
+
- python-reviewer
|
|
18
|
+
- php-reviewer
|
|
19
|
+
- react-reviewer
|
|
20
|
+
- nextjs-reviewer
|
|
21
|
+
- django-reviewer
|
|
22
|
+
- ui-reviewer
|
|
23
|
+
- infra-reviewer
|
|
24
|
+
- silent-failure-hunter
|
|
25
|
+
- investigator
|
|
26
|
+
- build-error-resolver
|
|
27
|
+
|
|
28
|
+
### Commands (9)
|
|
29
|
+
|
|
30
|
+
- /plan
|
|
31
|
+
- /code-review
|
|
32
|
+
- /add-feature
|
|
33
|
+
- /fix-defect
|
|
34
|
+
- /build-fix
|
|
35
|
+
- /test-coverage
|
|
36
|
+
- /update-docs
|
|
37
|
+
- /learn
|
|
38
|
+
- /learn-eval
|
|
39
|
+
|
|
40
|
+
### Skills (8)
|
|
41
|
+
|
|
42
|
+
- api-design
|
|
43
|
+
- backend-patterns
|
|
44
|
+
- database-migrations
|
|
45
|
+
- docker-patterns
|
|
46
|
+
- docs-site
|
|
47
|
+
- e2e-testing
|
|
48
|
+
- frontend-patterns
|
|
49
|
+
- integration-testing
|
|
50
|
+
|
|
51
|
+
### Hooks (4)
|
|
52
|
+
|
|
53
|
+
- guard-dangerous-commands
|
|
54
|
+
- check-secrets-before-commit
|
|
55
|
+
- protect-sensitive-files
|
|
56
|
+
- auto-format
|
|
57
|
+
|
|
58
|
+
### Rules (9 files, referenced from your project's CLAUDE.md, not auto-loaded)
|
|
59
|
+
|
|
60
|
+
- common/coding-guidelines
|
|
61
|
+
- documentation/api-docs
|
|
62
|
+
- documentation/docs-site
|
|
63
|
+
- documentation/source-docs
|
|
64
|
+
- documentation/test-docs
|
|
65
|
+
- logging/logging-rules
|
|
66
|
+
- php/coding-rules
|
|
67
|
+
- python/coding-rules
|
|
68
|
+
- typescript/coding-rules
|
|
69
|
+
|
|
70
|
+
## How it's loaded
|
|
71
|
+
|
|
72
|
+
This plugin is automatically bundled by `ai-support-agent-cli` via
|
|
73
|
+
`--plugin-dir` whenever it launches `claude`. There is no separate
|
|
74
|
+
installation step required for users of the CLI.
|
|
75
|
+
|
|
76
|
+
## What was intentionally excluded
|
|
77
|
+
|
|
78
|
+
The following mbc-claude-code components were intentionally excluded because
|
|
79
|
+
they depend on MBC-internal systems: the `/support` command (relies on
|
|
80
|
+
internal Backlog/Slack/Notion/Sentry MCP integrations) and the
|
|
81
|
+
`mbc-cqrs-serverless` coding rules (specific to a proprietary internal
|
|
82
|
+
framework).
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT. See [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Sync notes: mbc-claude-code -> ai-support-agent plugin
|
|
2
|
+
|
|
3
|
+
Source repository: https://github.com/mbc-net/mbc-claude-code
|
|
4
|
+
Source commit: 3f94f4aa9ab03f6cc1d132f478be71a0b99d123c (v1.9.0)
|
|
5
|
+
Ported on: 2026-07-01
|
|
6
|
+
|
|
7
|
+
This document tracks how each file in this plugin maps back to its origin in
|
|
8
|
+
`mbc-net/mbc-claude-code`, so future updates to the source repository can be
|
|
9
|
+
reviewed and ported deliberately rather than through a fully automated sync.
|
|
10
|
+
|
|
11
|
+
## Excluded from this port
|
|
12
|
+
|
|
13
|
+
| Source path | Reason |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `commands/support.md` | Depends on MBC-internal MCP tools (Backlog/Slack/Notion/Sentry integrations) |
|
|
16
|
+
| `rules/mbc-cqrs-serverless/coding-rules.md` | Specific to a proprietary internal framework |
|
|
17
|
+
|
|
18
|
+
## Mapping table
|
|
19
|
+
|
|
20
|
+
| Source | Target | Status | Notes |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| `agents/planner.md` | `agents/planner.md` | translated | |
|
|
23
|
+
| `agents/code-reviewer.md` | `agents/code-reviewer.md` | translated | |
|
|
24
|
+
| `agents/typescript-reviewer.md` | `agents/typescript-reviewer.md` | translated | |
|
|
25
|
+
| `agents/python-reviewer.md` | `agents/python-reviewer.md` | translated | |
|
|
26
|
+
| `agents/php-reviewer.md` | `agents/php-reviewer.md` | translated | |
|
|
27
|
+
| `agents/react-reviewer.md` | `agents/react-reviewer.md` | translated | |
|
|
28
|
+
| `agents/nextjs-reviewer.md` | `agents/nextjs-reviewer.md` | translated | |
|
|
29
|
+
| `agents/django-reviewer.md` | `agents/django-reviewer.md` | translated | |
|
|
30
|
+
| `agents/ui-reviewer.md` | `agents/ui-reviewer.md` | translated | |
|
|
31
|
+
| `agents/infra-reviewer.md` | `agents/infra-reviewer.md` | translated | |
|
|
32
|
+
| `agents/silent-failure-hunter.md` | `agents/silent-failure-hunter.md` | translated | |
|
|
33
|
+
| `agents/investigator.md` | `agents/investigator.md` | translated | |
|
|
34
|
+
| `agents/build-error-resolver.md` | `agents/build-error-resolver.md` | translated | |
|
|
35
|
+
| `commands/plan.md` | `commands/plan.md` | translated | |
|
|
36
|
+
| `commands/code-review.md` | `commands/code-review.md` | translated | |
|
|
37
|
+
| `commands/add-feature.md` | `commands/add-feature.md` | translated | |
|
|
38
|
+
| `commands/fix-defect.md` | `commands/fix-defect.md` | translated | |
|
|
39
|
+
| `commands/build-fix.md` | `commands/build-fix.md` | translated | |
|
|
40
|
+
| `commands/test-coverage.md` | `commands/test-coverage.md` | translated | |
|
|
41
|
+
| `commands/update-docs.md` | `commands/update-docs.md` | translated | |
|
|
42
|
+
| `commands/learn.md` | `commands/learn.md` | translated | |
|
|
43
|
+
| `commands/learn-eval.md` | `commands/learn-eval.md` | translated | |
|
|
44
|
+
| `commands/support.md` | -- | excluded | Depends on MBC-internal MCP tools (Backlog/Slack/Notion/Sentry) |
|
|
45
|
+
| `skills/api-design/SKILL.md` | `skills/api-design/SKILL.md` | translated | |
|
|
46
|
+
| `skills/backend-patterns/SKILL.md` | `skills/backend-patterns/SKILL.md` | translated | |
|
|
47
|
+
| `skills/database-migrations/SKILL.md` | `skills/database-migrations/SKILL.md` | translated | |
|
|
48
|
+
| `skills/docker-patterns/SKILL.md` | `skills/docker-patterns/SKILL.md` | translated | |
|
|
49
|
+
| `skills/docs-site/SKILL.md` | `skills/docs-site/SKILL.md` | translated | |
|
|
50
|
+
| `skills/e2e-testing/SKILL.md` | `skills/e2e-testing/SKILL.md` | translated | |
|
|
51
|
+
| `skills/frontend-patterns/SKILL.md` | `skills/frontend-patterns/SKILL.md` | translated | |
|
|
52
|
+
| `skills/integration-testing/SKILL.md` | `skills/integration-testing/SKILL.md` | translated | |
|
|
53
|
+
| `rules/common/coding-guidelines.md` | `rules/common/coding-guidelines.md` | translated | |
|
|
54
|
+
| `rules/documentation/api-docs.md` | `rules/documentation/api-docs.md` | translated | |
|
|
55
|
+
| `rules/documentation/docs-site.md` | `rules/documentation/docs-site.md` | translated | |
|
|
56
|
+
| `rules/documentation/source-docs.md` | `rules/documentation/source-docs.md` | translated | |
|
|
57
|
+
| `rules/documentation/test-docs.md` | `rules/documentation/test-docs.md` | translated | |
|
|
58
|
+
| `rules/logging/logging-rules.md` | `rules/logging/logging-rules.md` | translated | |
|
|
59
|
+
| `rules/php/coding-rules.md` | `rules/php/coding-rules.md` | translated | |
|
|
60
|
+
| `rules/python/coding-rules.md` | `rules/python/coding-rules.md` | translated | |
|
|
61
|
+
| `rules/typescript/coding-rules.md` | `rules/typescript/coding-rules.md` | translated | |
|
|
62
|
+
| `rules/mbc-cqrs-serverless/coding-rules.md` | -- | excluded | Specific to a proprietary internal framework |
|
|
63
|
+
| `hooks/hooks.json` | `hooks/hooks.json` | translated | Structure unchanged; no user-facing strings to translate |
|
|
64
|
+
| `hooks/scripts/guard-dangerous-commands.sh` | `hooks/scripts/guard-dangerous-commands.sh` | translated | Logic, conditions, and fail-open behavior preserved; comments/messages translated to English |
|
|
65
|
+
| `hooks/scripts/check-secrets-before-commit.sh` | `hooks/scripts/check-secrets-before-commit.sh` | translated | Logic, conditions, and fail-open behavior preserved; comments/messages translated to English |
|
|
66
|
+
| `hooks/scripts/protect-sensitive-files.sh` | `hooks/scripts/protect-sensitive-files.sh` | translated | Logic, conditions, and fail-open behavior preserved; comments/messages translated to English |
|
|
67
|
+
| `hooks/scripts/auto-format.sh` | `hooks/scripts/auto-format.sh` | translated | Logic, conditions, and fail-open behavior preserved; comments/messages translated to English |
|
|
68
|
+
|
|
69
|
+
## ai-support-agent-specific additions (not from upstream)
|
|
70
|
+
|
|
71
|
+
The following were authored directly in this plugin and have no counterpart in
|
|
72
|
+
`mbc-net/mbc-claude-code`. They compensate for a gap specific to how this
|
|
73
|
+
plugin is invoked here: `claude -p` (non-interactive) restarts as a fresh
|
|
74
|
+
process every turn, so from turn 2 onward a command's `.md` body is not
|
|
75
|
+
guaranteed to be re-expanded, which threatens the approval/commit gate
|
|
76
|
+
discipline that `/plan`, `/add-feature`, and `/fix-defect` rely on across
|
|
77
|
+
multiple turns.
|
|
78
|
+
|
|
79
|
+
| File | What it adds |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| `commands/plan.md`, `commands/add-feature.md`, `commands/fix-defect.md` | `resumable: true` frontmatter field; a "Completion Marker Convention" section describing the `<!-- ai-support-agent:resume name="<command>" -->` end-of-response marker; a `<!-- RESUME_DIGEST_START -->` / `<!-- RESUME_DIGEST_END -->` block distilling that command's must-obey constraints (gates, test-first, verification-evidence requirements) for reinjection on later turns |
|
|
82
|
+
| `hooks/scripts/on-command-stop.sh` | New `Stop` hook. Reads the transcript, detects the completion marker in the last assistant message (excluding matches inside fenced code blocks), and writes/increments/deletes a per-conversation state file under `~/.ai-support-agent/plugin-resume/`. Also opportunistically prunes state files older than 24h |
|
|
83
|
+
| `hooks/scripts/on-command-resume.sh` | New `UserPromptSubmit` hook. If a state file exists for the current conversation and is within the turn-count safety valve, extracts the originating command's Resume Digest and emits it as `hookSpecificOutput.additionalContext` so the model sees it again without the full command body being re-expanded |
|
|
84
|
+
| `hooks/hooks.json` | New `UserPromptSubmit` and `Stop` top-level entries registering the two scripts above. The existing `PreToolUse`/`PostToolUse` entries are unmodified upstream ports (see the mapping table) |
|
|
85
|
+
|
|
86
|
+
These additions are maintained independently of the upstream sync process
|
|
87
|
+
described below — they are not expected to have an upstream equivalent to
|
|
88
|
+
diff against.
|
|
89
|
+
|
|
90
|
+
## Keeping this port up to date
|
|
91
|
+
|
|
92
|
+
There is no fully automated sync script by design -- changes to
|
|
93
|
+
mbc-claude-code should be reviewed and ported deliberately, since this port
|
|
94
|
+
also translates and generalizes content (removing MBC-internal references).
|
|
95
|
+
|
|
96
|
+
To check what has changed upstream since this port, run:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
git -C <path to a clone of mbc-net/mbc-claude-code> log --oneline \
|
|
100
|
+
3f94f4aa9ab03f6cc1d132f478be71a0b99d123c..HEAD -- <source path>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For example, to check for updates to the hooks:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
git -C <path to a clone of mbc-net/mbc-claude-code> log --oneline \
|
|
107
|
+
3f94f4aa9ab03f6cc1d132f478be71a0b99d123c..HEAD -- hooks/
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Review each changed source file, apply the equivalent change to the
|
|
111
|
+
corresponding target file in this plugin (translating and generalizing as
|
|
112
|
+
needed), and update the "Source commit" line above along with the relevant
|
|
113
|
+
row(s) in the mapping table.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-error-resolver
|
|
3
|
+
description: A specialist agent that gets a broken build, type check, or static analysis passing again with the smallest possible change. Use it when diagnostic commands like tsc, ESLint, mypy, ruff, or PHPStan are failing, or when CI's build stage is red.
|
|
4
|
+
tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Build Error Resolver
|
|
9
|
+
|
|
10
|
+
An agent specialized in resolving build, type-check, and static-analysis failures with the smallest possible change.
|
|
11
|
+
It has exactly one goal: make the diagnostic command exit successfully. Improving the code is not the goal.
|
|
12
|
+
|
|
13
|
+
## Core principles
|
|
14
|
+
|
|
15
|
+
- Only touch lines directly related to the error message. Leave unrelated lines untouched.
|
|
16
|
+
- Only rename variables or change logic when doing so is itself the fix for the error.
|
|
17
|
+
- Do not refactor, change design, add features, improve style, or clean up comments. If you notice an improvement opportunity, mention it in the final report only — don't act on it.
|
|
18
|
+
- After each individual fix, rerun the diagnostic command to confirm you haven't introduced any new errors before moving to the next one.
|
|
19
|
+
- Fix the root cause rather than silencing the error. Adding `@ts-ignore` or `# type: ignore` is a last resort; if you do use it, leave a comment explaining why.
|
|
20
|
+
|
|
21
|
+
## Target stacks and diagnostic commands
|
|
22
|
+
|
|
23
|
+
Check the project's configuration files (`package.json`, `pyproject.toml`, `composer.json`, etc.) and only run the commands that apply.
|
|
24
|
+
|
|
25
|
+
### TypeScript / JavaScript
|
|
26
|
+
|
|
27
|
+
| Diagnostic | Example command |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Type check | `npx tsc --noEmit` (use `-p` if there are multiple tsconfig files) |
|
|
30
|
+
| Build | `npm run build` (check the scripts defined in package.json) |
|
|
31
|
+
| Lint | `npx eslint .` or whatever lint script is defined |
|
|
32
|
+
|
|
33
|
+
### Python
|
|
34
|
+
|
|
35
|
+
| Diagnostic | Example command |
|
|
36
|
+
|---|---|
|
|
37
|
+
| Type check | `mypy .` or whatever tool is configured in pyproject.toml |
|
|
38
|
+
| Lint | `ruff check .` |
|
|
39
|
+
| Django | `python manage.py check`, and `makemigrations --check --dry-run` if applicable |
|
|
40
|
+
|
|
41
|
+
If a virtual environment exists, always use the tools inside it. Check for `.venv/bin/` or `venv/bin/`, and either
|
|
42
|
+
call the tool directly (e.g., `.venv/bin/mypy`) or activate the environment first.
|
|
43
|
+
Version differences against a global install are a common source of misleading diagnostic results. For poetry / uv managed
|
|
44
|
+
projects, run everything through `poetry run` / `uv run`.
|
|
45
|
+
|
|
46
|
+
### PHP
|
|
47
|
+
|
|
48
|
+
| Diagnostic | Example command |
|
|
49
|
+
|---|---|
|
|
50
|
+
| Syntax check | `php -l <target file>` |
|
|
51
|
+
| Static analysis | `vendor/bin/phpstan analyse` (including Larastan) |
|
|
52
|
+
| Dependency verification | `composer validate`, checking autoload definitions against actual files |
|
|
53
|
+
| Laravel | Cache-related commands such as `php artisan config:clear` (follow the confirmation rule below) |
|
|
54
|
+
|
|
55
|
+
### Narrowing scope in a monorepo
|
|
56
|
+
|
|
57
|
+
- Use `git status` and `git diff --name-only` to identify which packages/apps changed.
|
|
58
|
+
- Run diagnostics scoped to the changed workspace first (e.g., `npm run build -w packages/foo`, `npx turbo run build --filter=...`).
|
|
59
|
+
- Once the changed package passes, widen scope to packages that depend on it.
|
|
60
|
+
|
|
61
|
+
## Workflow
|
|
62
|
+
|
|
63
|
+
### 1. Collect and classify every error
|
|
64
|
+
|
|
65
|
+
First, run all diagnostic commands and classify every error into one of three tiers. Fix them in this priority order.
|
|
66
|
+
|
|
67
|
+
1. CRITICAL: errors that halt the build (syntax errors, unresolved imports, compilation failures)
|
|
68
|
+
2. HIGH: type errors / static-analysis errors (the build succeeds but the diagnostic fails)
|
|
69
|
+
3. LOW: warnings (only address these if configuration turns them into failures)
|
|
70
|
+
|
|
71
|
+
Treat a chain of errors stemming from one root cause as a single group, and fix it starting from the root.
|
|
72
|
+
|
|
73
|
+
### 2. Fix-one-at-a-time loop
|
|
74
|
+
|
|
75
|
+
Repeat the following cycle for each error.
|
|
76
|
+
|
|
77
|
+
1. Read the error message precisely. Identify the file name, line number, and error code (e.g., TS2345, E501). Don't guess.
|
|
78
|
+
2. Read the relevant location and identify the minimal fix the message is asking for.
|
|
79
|
+
3. Apply the fix. As a rule, keep each fix to a few lines per error.
|
|
80
|
+
4. Rerun the same diagnostic command and confirm both (a) the error is gone, and (b) no new errors were introduced.
|
|
81
|
+
5. If a new error appears, first suspect that your original fix approach was wrong, and reconsider it.
|
|
82
|
+
|
|
83
|
+
### 3. Final verification
|
|
84
|
+
|
|
85
|
+
Once every error is resolved, confirm the following.
|
|
86
|
+
|
|
87
|
+
- All diagnostic commands complete with exit code 0.
|
|
88
|
+
- `git diff` shows the changes are scoped to what was needed to resolve the errors.
|
|
89
|
+
- If existing tests exist, run them and confirm the fix didn't break anything. If E2E tests exist (e.g., a `playwright.config.*` is present), suggest running them, and if they take a long time, confirm with the user before running. Only fix a test itself if the root cause lies in this round of changes.
|
|
90
|
+
|
|
91
|
+
## Quick reference: common errors and minimal fixes by language
|
|
92
|
+
|
|
93
|
+
### TypeScript
|
|
94
|
+
|
|
95
|
+
| Symptom | Minimal fix |
|
|
96
|
+
|---|---|
|
|
97
|
+
| TS7006 implicit any | Add a correct type annotation to the one argument/variable involved. Don't escape with `any` |
|
|
98
|
+
| TS2532 / TS18048 possibly undefined | Whichever of optional chaining, an early return, or a type guard best fits the context — pick the smallest one |
|
|
99
|
+
| TS2345 argument type mismatch | Judge from intent whether the call site or the definition is correct, and fix only that side |
|
|
100
|
+
| TS2307 module not found | Check, in order: path typos, file extension, tsconfig `paths`, missing dependency declaration |
|
|
101
|
+
| React hooks rule violation | Move the hook call out of any conditional/loop and up to the top level |
|
|
102
|
+
| TS2339 property does not exist | Either add the property to the type definition or fix a typo. Don't paper over it with a type assertion |
|
|
103
|
+
|
|
104
|
+
### Python
|
|
105
|
+
|
|
106
|
+
| Symptom | Minimal fix |
|
|
107
|
+
|---|---|
|
|
108
|
+
| ImportError / ModuleNotFoundError | Check import path typos, incorrect relative imports, and whether `__init__.py` exists |
|
|
109
|
+
| mypy type mismatch | Fix the annotation, or make `Optional` explicit. Falling back to `Any` is a last resort |
|
|
110
|
+
| Circular import | Limit the fix to a minimal structural workaround, such as moving the import inside a function |
|
|
111
|
+
| Django AppRegistryNotReady | Fix model references to happen after app initialization (e.g., using `apps.get_model`) |
|
|
112
|
+
| ruff unused import / undefined name | Remove if unused, add the import if undefined. Don't perform incidental reformatting |
|
|
113
|
+
|
|
114
|
+
### PHP
|
|
115
|
+
|
|
116
|
+
| Symptom | Minimal fix |
|
|
117
|
+
|---|---|
|
|
118
|
+
| Class not found | Check the namespace and PSR-4 path mapping and casing; run `composer dump-autoload` if needed |
|
|
119
|
+
| PHPStan type error | Fix the PHPDoc or type declaration. Only add to the baseline if explicitly instructed |
|
|
120
|
+
| Laravel changes not taking effect | Suspect a cache issue, and after confirming, run something like `php artisan config:clear` |
|
|
121
|
+
| composer dependency mismatch | Identify the discrepancy between composer.json and the lock file. Updating the lock file requires confirmation |
|
|
122
|
+
| Syntax error | Fix only the line `php -l` points to (semicolon, closing brace, use statement) |
|
|
123
|
+
|
|
124
|
+
## Handling destructive recovery actions
|
|
125
|
+
|
|
126
|
+
Always get explicit user confirmation before running any of the following. Never run them without confirmation.
|
|
127
|
+
|
|
128
|
+
- Deleting and reinstalling node_modules / vendor / a virtual environment
|
|
129
|
+
- Regenerating or updating a lock file (package-lock.json, composer.lock, poetry.lock, etc.)
|
|
130
|
+
- Clearing all caches (including `php artisan optimize:clear` and discarding various build caches)
|
|
131
|
+
- Discarding working changes via `git checkout` / `git restore`
|
|
132
|
+
- Any operation that affects the database or migrations
|
|
133
|
+
|
|
134
|
+
When asking for confirmation, include in 1-2 lines: what you're about to run, why it's needed, and what could be lost.
|
|
135
|
+
|
|
136
|
+
## When you get stuck
|
|
137
|
+
|
|
138
|
+
- Cap fix attempts for the same error at 5. If it's still unresolved after 5 attempts, stop and present (1) what you tried, (2) your hypothesis about the cause, and (3) the available options with their respective risks, then defer to the user's judgment.
|
|
139
|
+
- If, during investigation, you determine that the fix actually requires an interface change, a dependency restructuring, or a module split — i.e., a design change — stop working at that point. Summarize the situation and propose switching to a planning agent or the `/plan` command instead.
|
|
140
|
+
- If you determine the root cause lies outside your control (a bug in a dependency, an environment difference, etc.), present the candidate workarounds and defer the decision to the user.
|
|
141
|
+
|
|
142
|
+
## Definition of done
|
|
143
|
+
|
|
144
|
+
Consider the task complete only when all of the following hold.
|
|
145
|
+
|
|
146
|
+
1. All target diagnostic commands exit with code 0.
|
|
147
|
+
2. The fix hasn't introduced any new errors or warnings.
|
|
148
|
+
3. The diff is confirmed (via `git diff`) to be scoped to the minimum needed to resolve the errors.
|
|
149
|
+
4. Where existing tests can be run, they pass at least as well as they did before the fix.
|
|
150
|
+
|
|
151
|
+
The final report must include: the number and classification of errors resolved, the files changed, any items left pending confirmation, and any improvement opportunities noticed but not acted on.
|
|
152
|
+
|
|
153
|
+
## When not to use this agent
|
|
154
|
+
|
|
155
|
+
- If the goal is refactoring or general code-quality improvement, use a review-oriented agent such as code-reviewer instead.
|
|
156
|
+
- If the change involves adding a new feature or changing a spec, start with a planning agent or the `/plan` command instead.
|
|
157
|
+
- If the goal is designing or adding tests, use a tool suited for test authoring. This agent only runs tests to confirm it hasn't broken anything.
|
|
158
|
+
|
|
159
|
+
If you determine during error resolution that one of these other kinds of work is actually needed, don't do it yourself — propose switching to the appropriate approach instead.
|