-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Context
Mutating commands (create, install, remove) execute immediately with no way to preview what will happen. A --dry-run flag could show the planned actions without executing them.
Idea
Add --dry-run flag to skern skill create, skern skill install, skern skill remove, and other mutating commands.
Open Questions — Decisions Needed
The value and design of this feature need clarification:
-
Agentic use case is unclear — It's not obvious how agents would treat
--dry-runoutput. Two potential scenarios:- Agent → sub-agent handoff: An orchestrating agent uses
--dry-runto plan, then passes the plan to a sub-agent for execution. This requires structured (--json) dry-run output. - Human review: A human uses
--dry-runto preview before confirming. This is a more traditional CLI pattern.
- Agent → sub-agent handoff: An orchestrating agent uses
-
Is this redundant for agents? — Agents can already use
skern skill searchandskern skill showto inspect state before acting. Does--dry-runadd enough value over the existing inspection commands to justify the implementation cost? -
Output format — What does dry-run output look like?
- Same as regular output but with a "would do" prefix?
- A structured plan object in
--jsonmode? - A diff-like format showing before/after state?
-
Scope — Which commands get
--dry-run? All mutating commands, or only the risky ones (remove,uninstall)?
These questions should be resolved to determine whether this feature is worth pursuing and what form it should take.
References
Analysis item 2.9