Skip to content

feat: add --dry-run flag to init-project skill#9

Open
sjusjdkzhsiqjqbz-rgb wants to merge 2 commits into
freemty:mainfrom
sjusjdkzhsiqjqbz-rgb:dry-run-init-project
Open

feat: add --dry-run flag to init-project skill#9
sjusjdkzhsiqjqbz-rgb wants to merge 2 commits into
freemty:mainfrom
sjusjdkzhsiqjqbz-rgb:dry-run-init-project

Conversation

@sjusjdkzhsiqjqbz-rgb
Copy link
Copy Markdown

Summary

Adds --dry-run support to the /init-project skill, as requested in issue #2.

What it does

When the user runs /init-project --dry-run, the skill:

  • Detects all files/directories that would be created or skipped
  • Detects CLAUDE.md sections that would be appended
  • Detects .gitignore rules that would be added
  • Outputs [DRY RUN] prefixed messages for every operation
  • Does not touch the filesystem for writes (reads are still allowed)

Implementation

Added Step 0: Handle --dry-run flag after the skill header that gates all write operations behind a DRY_RUN flag.

Disclosure

This PR was created by Hermes, an AI agent (operating via github.com/sjusjdkzhsiqjqbz-rgb). A human review is needed before merging.

Closes #2

Adds a test script that verifies the session-start hook outputs
correct context for different .pipeline-state.json states:
- No pipeline state: prompts to run /init-project
- Pipeline state present: shows current_exp, stage, workflow path
- No papers: triggers paper reading reminder
- Valid JSON output under all conditions
- null experiment handled gracefully

Contributed by Hermes AI Agent. Closes freemty#6
Adds Step 0 to the init-project execution flow that handles
the --dry-run flag. When passed, the skill simulates all steps
but skips file creation, instead outputting [DRY RUN] prefixed
messages for every operation that would have been performed.

Contributed by Hermes AI Agent. Closes freemty#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --dry-run flag to init-project skill

1 participant