-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Convert generate-project-context to native skill packaging #1950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| name: bmad-generate-project-context | ||
| description: 'Create project-context.md with AI rules. Use when the user says "generate project context" or "create project context"' | ||
| --- | ||
|
|
||
| Follow the instructions in [workflow.md](workflow.md). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| type: skill | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -123,7 +123,7 @@ Based on discovery, create or update the context document: | |||||
|
|
||||||
| #### A. Fresh Document Setup (if no existing context) | ||||||
|
|
||||||
| Copy template from `{installed_path}/project-context-template.md` to `{output_folder}/project-context.md` | ||||||
| Copy template from `./project-context-template.md` to `{output_folder}/project-context.md` | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Template source path is incorrect for converted-workflow step resolution. Line 126 uses Proposed fix-Copy template from `./project-context-template.md` to `{output_folder}/project-context.md`
+Copy template from `../project-context-template.md` to `{output_folder}/project-context.md`Based on learnings: "In step files located inside a 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| Initialize frontmatter fields. | ||||||
|
Comment on lines
+126
to
127
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Define overwrite behavior explicitly before copying template. Lines 126-127 initialize output but don’t specify overwrite/merge behavior when the file already exists. That creates nondeterministic behavior in the existing-context branch. 🤖 Prompt for AI Agents |
||||||
|
|
||||||
| #### B. Existing Document Update | ||||||
|
|
@@ -179,6 +179,6 @@ Ready to create/update your project context. This will help AI agents implement | |||||
|
|
||||||
| ## NEXT STEP: | ||||||
|
|
||||||
| After user selects [C] to continue, load `{project-root}/_bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md` to collaboratively generate the specific project context rules. | ||||||
| After user selects [C] to continue, load `./step-02-generate.md` to collaboratively generate the specific project context rules. | ||||||
|
|
||||||
| Remember: Do NOT proceed to step-02 until user explicitly selects [C] from the menu and discovery is confirmed and the initial file has been written as directed in this discovery step! | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| --- | ||
| name: generate-project-context | ||
| description: 'Create project-context.md with AI rules. Use when the user says "generate project context" or "create project context"' | ||
| --- | ||
|
|
||
| # Generate Project Context Workflow | ||
|
|
||
| **Goal:** Create a concise, optimized `project-context.md` file containing critical rules, patterns, and guidelines that AI agents must follow when implementing code. This file focuses on unobvious details that LLMs need to be reminded of. | ||
|
|
@@ -37,14 +32,14 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: | |
|
|
||
| ### Paths | ||
|
|
||
| - `installed_path` = `{project-root}/_bmad/bmm/workflows/generate-project-context` | ||
| - `template_path` = `{installed_path}/project-context-template.md` | ||
| - `installed_path` = `.` | ||
| - `template_path` = `./project-context-template.md` | ||
|
Comment on lines
+35
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Relative path normalization now relies on implicit runtime cwd semantics. Lines 35-36 switched from absolute/project-root-derived values to 🤖 Prompt for AI Agents |
||
| - `output_file` = `{output_folder}/project-context.md` | ||
|
|
||
| --- | ||
|
|
||
| ## EXECUTION | ||
|
|
||
| Load and execute `{project-root}/_bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md` to begin the workflow. | ||
| Load and execute `./steps/step-01-discover.md` to begin the workflow. | ||
|
|
||
| **Note:** Input document discovery and initialization protocols are handled in step-01-discover.md. | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add manifest
description; discovery/help metadata is currently dropped.Line 1 omits
description, which removes human-readable intent for this skill and makes manifest metadata weaker than the repo convention.Based on learnings: "In all bmad-skill-manifest.yaml files, use a concise, action-oriented description ... Keep descriptions brief and consistent across manifests."
🤖 Prompt for AI Agents