Skip to content

Commit 75bf537

Browse files
author
catlog22
committed
fix: update references to workflow-lite-plan in analyze-with-file and SKILL documents
1 parent e0c3397 commit 75bf537

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.claude/commands/workflow/analyze-with-file.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,14 @@ const priorContext = `
578578
console.log(`## Implementation Scope (${implScope.length} items)`)
579579
implScope.forEach((item, i) => {
580580
console.log(`${i+1}. **${item.objective}** [${item.priority}]`)
581-
console.log(` Files: ${item.target_files.map(f => typeof f === 'string' ? f : f.path).join(', ') || 'TBD by lite-plan'}`)
581+
console.log(` Files: ${item.target_files.map(f => typeof f === 'string' ? f : f.path).join(', ') || 'TBD by workflow-lite-plan'}`)
582582
console.log(` Done when: ${item.acceptance_criteria.join(' + ')}`)
583583
})
584584
585585
if (!autoMode) {
586586
AskUserQuestion({
587587
questions: [{
588-
question: "Implementation scope correct? lite-plan will break these into concrete tasks.",
588+
question: "Implementation scope correct? workflow-lite-plan will break these into concrete tasks.",
589589
header: "Scope确认",
590590
multiSelect: false,
591591
options: [
@@ -601,15 +601,15 @@ const priorContext = `
601601
602602
**Step C: Build Structured Handoff & Invoke Skill**:
603603
```javascript
604-
// Structured handoff — lite-plan parses this as JSON block, not free text
604+
// Structured handoff — workflow-lite-plan parses this as JSON block, not free text
605605
const handoff = {
606606
source: 'analyze-with-file',
607607
session_id: sessionId,
608608
session_folder: sessionFolder,
609609
summary: conclusions.summary,
610610
implementation_scope: implScope, // WHAT + acceptance criteria
611611
code_anchors: (conclusions.code_anchors || []).slice(0, 10), // WHERE
612-
key_files: explorationResults.relevant_files?.slice(0, 8) || [],
612+
key_files: JSON.parse(Read(`${sessionFolder}/exploration-codebase.json`))?.relevant_files?.slice(0, 8) || [],
613613
key_findings: conclusions.key_conclusions?.slice(0, 5) || [],
614614
decision_context: conclusions.decision_trail?.slice(-3) || [] // recent decisions for context
615615
}

.claude/skills/workflow-lite-plan/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ if (typeof workflowPreferences === 'undefined' || workflowPreferences === null)
7171
**Session Setup** (MANDATORY):
7272
```javascript
7373
const getUtc8ISOString = () => new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString()
74-
const taskSlug = task_description.toLowerCase().replace(/[^a-z0-9]+/g, '-').substring(0, 40)
74+
const priorHeader = task_description.match(/^## Prior (?:Analysis|Brainstorm) \((.+?)\)/m)
75+
const taskSlug = (priorHeader ? priorHeader[1] : task_description).toLowerCase().replace(/[^a-z0-9]+/g, '-').substring(0, 40).replace(/^-+|-+$/g, '')
7576
const dateStr = getUtc8ISOString().substring(0, 10)
7677
const sessionId = `${taskSlug}-${dateStr}`
7778
const sessionFolder = `.workflow/.lite-plan/${sessionId}`

0 commit comments

Comments
 (0)