feat: Improve skill use and system prompt organization#515
Merged
Henry-811 merged 8 commits intodev/v0.1.12from Nov 14, 2025
Merged
feat: Improve skill use and system prompt organization#515Henry-811 merged 8 commits intodev/v0.1.12from
Henry-811 merged 8 commits intodev/v0.1.12from
Conversation
…d serena for semantic search
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Major refactoring of system prompt architecture using priority-based XML sections, addition of semantic search capabilities via
semtoolsandserenaskills, enhanced browser automation with image persistence, and support for local skill execution outside Docker.Key improvements:
semtoolsandserenaskills for meaning-based code/document search (Closes MAS-72)Type of change
refactor:) - Code changes that neither fix a bug nor add a featurefeat:) - Non-breaking change which adds functionalityfix:) - Non-breaking change which fixes an issuebreaking:) - Fix or feature that would cause existing functionality to not work as expecteddocs:) - Documentation updatestest:) - Adding missing tests or correcting existing testschore:) - Maintenance tasks, dependency updates, etc.perf:) - Code changes that improve performancestyle:) - Changes that do not affect the meaning of the code (formatting, missing semi-colons, etc.)ci:) - Changes to CI/CD configuration files and scriptsDetailed Changes
1. System Prompt Architecture Refactor (Closes MAS-76)
New files:
massgen/system_prompt_sections.py(+1,284 lines): Class-based section architecturePriorityenum: CRITICAL → AUXILIARY orderingSystemPromptSectionbase class with XML supportmassgen/system_message_builder.py(+488 lines): Declarative prompt builderdocs/dev_notes/system_prompt_architecture_redesign.md(+593 lines): Design rationaleModified files:
massgen/orchestrator.py(-428 lines): Cleaner, delegates to SystemMessageBuildermassgen/message_templates.py(-682 lines): Removed redundant prompt logicmassgen/backend/claude_code.py: Integration with new system message builder2. Semantic Search Skills (Closes MAS-72)
New skills:
massgen/skills/semtools/SKILL.md(+635 lines)massgen/skills/serena/SKILL.md(+522 lines)Documentation:
docs/source/user_guide/skills.rst(+222 lines): Comprehensive semantic vs. keyword search guidedocs/source/reference/yaml_schema.rst(+36 lines): Updated schema docs3. Local Skill Execution
massgen/filesystem_manager/skills_manager.py: Refactored for local modemassgen/skills/file-search/SKILL.md: Renamed fromalways/file_searchmassgen/backend/claude_code.py: Ensures CC usesexecute_commandinstead of raw bash4. Browser Automation Enhancement
massgen/tools/custom_tools/_browser_automation/browser_automation_tool.py(+39 lines)5. Other Improvements
Checklist
Pre-commit status
How to Test
Test 1: System Prompt Architecture
CLI Command:
# Run existing orchestration tests to verify system prompt generation uv run pytest massgen/tests/test_orchestration_restart.py -vExpected Results:
Test 2: Semantic Search Skills
CLI Command:
Expected Results:
Test 3: Local Skill Execution
CLI Command:
# Test skills running locally without Docker uv run massgen massgen/configs/skills/skills_local_mode.yamlExpected Results:
Test 4: Browser Automation with Image Persistence
CLI Command:
# Test browser automation with screenshot saving uv run massgen massgen/configs/tools/custom_tools/multimodal_tools/playwright_with_img_understanding.yamlExpected Results:
Additional context
Impact: This is a significant architectural improvement that:
Stats: 26 files changed: +4,234 insertions, -1,122 deletions (net +3,112 lines)
Future work (separate PRs):