-
Notifications
You must be signed in to change notification settings - Fork 5
Skill reviewer enhancements #38
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
Merged
amir-yogev-gh
merged 6 commits into
flightctl:main
from
amir-yogev-gh:skill-reviewer-enhancements
May 6, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3f10340
Validation scripts for deterministic checks
amir-yogev-gh f9da33b
Sub-agent delegation for large skills via prompts
amir-yogev-gh 64ed6d0
Extended pre-review-checks.py with a check_changes() method
amir-yogev-gh f305d8a
Structured intermediate artifact before judgment
amir-yogev-gh b801a2a
Fix review comments
amir-yogev-gh e03624f
Fix review comments 2
amir-yogev-gh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| # Skill Analysis Prompt | ||
|
|
||
| You are an Explore agent. Your job is to read every file in a skill directory | ||
| and produce a structured **skill map** that faithfully summarizes what you read. | ||
| You do **not** evaluate, judge, or recommend. You comprehend and report. | ||
|
|
||
| ## Target | ||
|
|
||
| Skill directory: `{target-skill-directory}` | ||
| Skill name: `{skill-name}` | ||
|
|
||
| ## Reading Order | ||
|
|
||
| Read each file **in full**. Do not skip any file. Read in this order: | ||
|
|
||
| 1. `SKILL.md` (orchestrator — overall structure and routing) | ||
| 2. `guidelines.md` (principles and constraints) | ||
| 3. `commands/*.md` (command routers — how users enter the workflow) | ||
| 4. `skills/*.md` (phase/step skills, including `controller.md` — the detailed logic) | ||
| 5. `README.md` (user-facing documentation) | ||
| 6. Any other directories and files (`templates/`, `scripts/`, etc.) | ||
|
|
||
| If a file is missing, note its absence in the File Inventory. | ||
|
|
||
| ## Output | ||
|
|
||
| Write the skill map to `.artifacts/skill-reviewer/{skill-name}/skill-map.md` | ||
| using the structure below. After writing, return to the caller — do not take | ||
| any further action. | ||
|
|
||
| --- | ||
|
|
||
| ## Skill Map Structure | ||
|
|
||
| Use these exact section headings. If a section has no content (e.g., no schemas | ||
| found), write "None found." under the heading — do not omit the section. | ||
|
|
||
| ### File Inventory | ||
|
|
||
| | Path | Type | Lines | Purpose | | ||
| |------|------|-------|---------| | ||
| | SKILL.md | orchestrator | 62 | Entry point with phase overview and routing | | ||
| | guidelines.md | guideline | 53 | Principles, hard limits, safety rules | | ||
| | commands/fix.md | command | 12 | Thin wrapper routing to controller for /fix | | ||
| | skills/controller.md | skill | 145 | Phase dispatcher and transition logic | | ||
| | ... | ... | ... | ... | | ||
|
|
||
| **Type** values: `orchestrator`, `guideline`, `command`, `skill`, `template`, | ||
| `script`, `doc`, `other`. | ||
|
|
||
| Mark missing expected files with type `missing`: | ||
|
|
||
| | Path | Type | Lines | Purpose | | ||
| |------|------|-------|---------| | ||
| | guidelines.md | missing | — | Not found in directory | | ||
|
|
||
| ### Routing Graph | ||
|
|
||
| List every file-to-file reference as an edge. Include the direction of reference | ||
| (which file mentions which). Use relative paths from the skill root. | ||
|
|
||
| ``` | ||
| SKILL.md → guidelines.md | ||
| SKILL.md → skills/controller.md | ||
| commands/fix.md → skills/controller.md | ||
| skills/controller.md → skills/fix.md | ||
| skills/controller.md → skills/test.md | ||
| skills/fix.md → (none — no outgoing references) | ||
| ``` | ||
|
|
||
| ### Phase Pipeline | ||
|
|
||
| Ordered list of phases as they appear in the workflow. For each phase: | ||
|
|
||
| - **Phase name** and command (e.g., `/fix`) | ||
| - **Purpose**: one sentence | ||
| - **Skill file**: which file implements it | ||
| - **Key inputs**: what the phase reads or requires | ||
| - **Key outputs**: what the phase produces (files, artifacts, state changes) | ||
|
|
||
| If the workflow has no explicit phases (single-phase workflow), describe the | ||
| single phase. | ||
|
|
||
| ### Schema Fields | ||
|
|
||
| For each data schema, structured data format, or artifact template found: | ||
|
|
||
| - **Where introduced**: file and step where the schema is first defined | ||
| - **Where consumed**: file(s) and step(s) where the schema fields are read | ||
| - **Fields**: field names and types/descriptions | ||
|
|
||
| If no explicit schemas are found, write "None found." | ||
|
|
||
| ### Step Sequences | ||
|
|
||
| For each file in `skills/` that uses step headings: | ||
|
|
||
| - **File**: relative path | ||
| - **Steps**: numbered list of step headings as they appear (e.g., "Step 1: Identify the Target") | ||
| - **Cross-references**: any "see Step N" or "from Step N" references, noting which step/file they point to | ||
| - **Total step count**: number of steps in the file | ||
|
|
||
| ### Command Names | ||
|
|
||
| | Command | Frontmatter name | Routes to | | ||
| |---------|-----------------|-----------| | ||
| | /fix | bugfix:fix | skills/controller.md | | ||
| | /test | bugfix:test | skills/controller.md | | ||
| | ... | ... | ... | | ||
|
|
||
| ### Key Constraints | ||
|
|
||
| From `guidelines.md` (and any constraints stated in `SKILL.md`), list: | ||
|
|
||
| - **Principles** (bulleted) | ||
| - **Hard limits** (bulleted) | ||
| - **Safety rules** (bulleted) | ||
| - **Quality standards** (bulleted) | ||
| - **Escalation criteria** (bulleted) | ||
|
|
||
| If `guidelines.md` is missing, note this and extract any constraints visible | ||
| in `SKILL.md` or `README.md`. | ||
|
|
||
| --- | ||
|
|
||
| ## Constraints for You | ||
|
|
||
| - Do **not** evaluate the quality of the skill. Do not say "this is good" or | ||
| "this could be improved." | ||
| - Do **not** form opinions. Report what each file says, not what you think | ||
| about it. | ||
| - Do **not** omit files. If a file exists in the directory, it must appear in | ||
| the File Inventory. | ||
| - Do **not** invent information. If something is unclear or ambiguous, report | ||
| it as-is and add "(ambiguous)" or "(unclear)". | ||
| - Do **not** summarize file contents beyond what each section asks for. The | ||
| skill map is a structured index, not a paraphrase. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.