feat: path-scoped auto-discovery + dynamic context injection#90
Merged
harrymunro merged 3 commits intomainfrom Apr 10, 2026
Merged
feat: path-scoped auto-discovery + dynamic context injection#90harrymunro merged 3 commits intomainfrom
harrymunro merged 3 commits intomainfrom
Conversation
Add paths: [".nelson/**"] to SKILL.md frontmatter so Nelson auto-activates when a .nelson/ directory is detected. Inject current fleet status as a dynamic briefing prefix via a ! code block that runs nelson-data.py status against the most recent mission directory. Enhance cmd_status output to show mission name, per-ship hull status with completed ship detection, relative elapsed time since last checkpoint, and blocked task count. Make --mission-dir optional for graceful handling when no missions exist. Closes #80
…d elapsed tests
- Quote $() subshell and {skill-dir} path in SKILL.md ! block to prevent
word splitting on directory names with spaces
- Remove outer 2>/dev/null to surface real Python errors (|| fallback
already handles the no-mission case)
- Use :.0f format for budget percentage to match documented output (45%
not 45.0%)
- Add 9 parametrized unit tests for _format_elapsed() covering empty
input, unparseable strings, future timestamps, seconds/minutes/hours,
combined hours+minutes, and Zulu suffix parsing
harrymunro
added a commit
that referenced
this pull request
Apr 10, 2026
Integrate six PRs merged to main since this branch diverged: - PR #89: formation consolidation (form, headless commands) - PR #90: path-scoped auto-discovery - PR #91: typed handoff packet - PR #92: hook enforcement layer - PR #93: deterministic phase engine - PR #96: task list visibility Port new commands (form, headless, handoff, recover) into the modular architecture. Add phase field support to lifecycle commands for compatibility with the phase engine. All 234 tests pass.
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.
Summary
paths: [".nelson/**"]to SKILL.md frontmatter for automatic Nelson activation when a.nelson/directory exists!code block that runsnelson-data.py statusagainst the most recent mission, injecting fleet status as a briefing prefix on skill loadcmd_statusoutput with mission name, per-ship hull status, completed ship detection, relative elapsed time, and conditional blocked count--mission-diroptional on the status parser for graceful no-op when no missions existTest plan
test_status_after_checkpointto assert new formatpaths:triggers auto-activation in a project with.nelson/directory!block injects fleet status on skill load.nelson/directory existsCloses #80