mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-16 13:21:30 +01:00
Bring back the standalone /plan-eng-review command (GST-2726) (#4375)
Garry, 2026-11-15: people rely on /plan-eng-review, so it returns as its own command on every host that had it before GST-1698 (#4108). /autoplan's eng phase is unchanged: external hosts still ship the same methodology beside gstack-autoplan/SKILL.md, now rendered from the same pass as the standalone skill, and the Kiro sibling copy and ownership guards from #4108 stay. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
caa7140eee
commit
8837fda399
82 files changed
+362
-279
No files matched your search
@@ -134,6 +134,7 @@ export function capyBootstrapCommand(skill: string, root: string = CAPY_INSTALL_
|
||||
export const SKILL_REQUIREMENTS: Readonly<Record<string, SkillRequirement>> = {
|
||||
autoplan: PLANNING,
|
||||
'plan-ceo-review': PLANNING,
|
||||
'plan-eng-review': PLANNING,
|
||||
'plan-design-review': PLANNING,
|
||||
'plan-devex-review': PLANNING,
|
||||
'plan-tune': PLANNING,
|
||||
@@ -206,7 +207,7 @@ export const SKILL_REQUIREMENTS: Readonly<Record<string, SkillRequirement>> = {
|
||||
* required.
|
||||
*/
|
||||
export const PINS_ADVISORY_SKILLS: readonly string[] = [
|
||||
'autoplan', 'plan-ceo-review', 'plan-design-review', 'plan-devex-review', 'office-hours',
|
||||
'autoplan', 'plan-ceo-review', 'plan-eng-review', 'plan-design-review', 'plan-devex-review', 'office-hours',
|
||||
];
|
||||
|
||||
/** Rows always evaluated and required, in print order. */
|
||||
|
||||
@@ -38,7 +38,7 @@ export const BLOCK_END = '<!-- gstack:end harness-routing -->';
|
||||
export const DOT_SKILLS_DIR = '/home/dot/skills';
|
||||
export const ROUTER_DESCRIPTION = 'Use to review a diff or PR, debug a bug or failing test, QA test a site, plan or review architecture, ship a PR, audit security or write release docs. Load first for any coding task: lists every gstack skill and where to read it.';
|
||||
/** OpenClaw hybrid mode: these task skills are listed as skills of their own; the router carries the rest. */
|
||||
export const HYBRID_SKILLS = ['review', 'qa', 'ship'];
|
||||
export const HYBRID_SKILLS = ['review', 'qa', 'ship', 'plan-eng-review'];
|
||||
/**
|
||||
* OpenClaw serves a registered skill's SKILL.md whole or refuses it ("Skill instructions cannot be partially
|
||||
* served"), with maxBytes from resolveAdaptiveReadMaxBytes: 32,768 (DEFAULT_READ_PAGE_MAX_BYTES) when the model's
|
||||
|
||||
@@ -86,7 +86,7 @@ function integrate(cwd: string, base: string, run: string | undefined, r: Report
|
||||
const stat = git(cwd, ['diff', forkPoint(cwd, base), '--shortstat']).stdout.trim();
|
||||
const lines = [...stat.matchAll(/(\d+) (insertion|deletion)/g)].reduce((n, m) => n + Number(m[1]), 0);
|
||||
const commits = git(cwd, ['rev-list', '--count', `origin/${base}..HEAD`]).stdout.trim();
|
||||
r.add(`DIFF: ${stat || 'no changes'}; commits=${commits || 0}${lines > 200 ? '; over 200 lines: recommend /autoplan' : ''}`);
|
||||
r.add(`DIFF: ${stat || 'no changes'}; commits=${commits || 0}${lines > 200 ? '; over 200 lines: recommend /plan-eng-review or /autoplan' : ''}`);
|
||||
const pr = hostedOrigin(cwd) ? gh(cwd, ['pr', 'list', '--head', branch, '--state', 'open', '--json', 'number', '--jq', '.[0].number // empty']) : null;
|
||||
const n = pr?.stdout.trim() ?? '';
|
||||
if (!pr) r.add('PR: not checked (origin is a local path, not a hosted remote gh can map; Step 0 uses git-native commands)');
|
||||
|
||||
Reference in new issue
Block a user