skills/aif-explore/SKILL.md
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
npx skillsauth add lee-to/ai-factory aif-exploreInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
IMPORTANT: Explore mode is for thinking, not implementing. You may read files, search code, and investigate the codebase, but you must NEVER implement features or modify project code. If the user asks to implement something, remind them to exit explore mode first (e.g., start with /aif-plan). If the user asks to persist exploration context, write/edit only the resolved research path (default: .ai-factory/RESEARCH.md) - this is capturing thinking, not implementing.
FIRST: Read .ai-factory/config.yaml if it exists to resolve:
paths.description, paths.architecture, paths.rules_file, paths.roadmap, paths.research, paths.plan, paths.plans, and paths.ruleslanguage.ui for all user-facing responses: prompts, progress updates, explanations, exploration summaries, and next-step guidancelanguage.artifacts for generated or persisted exploration artifacts, including the resolved paths.researchlanguage.technical_terms for human-readable technical terminology style in artifacts and summarieslanguage.artifacts is missing, use language.uienworkflow.plan_id_format (default: slug) — used by the optional active-plan-context lookup when explore mode references an existing plan for the current branch.
Active values: slug and sequential. When sequential, glob
<paths.plans>/[0-9]{4}_<branch_stem>.md first and fall back to
<paths.plans>/<branch_stem>.md only if no numbered match is found.
timestamp and uuid are reserved values and currently behave like slug.
Treat any unknown value as slug.If config.yaml doesn't exist, use defaults:
.ai-factory/ for all artifactsui_language: enartifact_language: entechnical_terms_policy: keepworkflow.plan_id_format: slugStore:
ui_language = language.ui || "en"artifact_language = language.artifacts || language.ui || "en"technical_terms_policy = language.technical_terms || "keep"If technical_terms_policy is not one of keep, translate, or mixed, treat it as keep. Legacy values such as english also behave like keep.
All user-facing responses from /aif-explore MUST be written in ui_language.
Persisted exploration artifacts under paths.research MUST be written in artifact_language.
Apply technical_terms_policy while writing summaries and persisted artifacts:
keep - keep commands, paths, identifiers, config keys, API names, package names, branch names, code terms, and raw error messages unchangedtranslate - translate human-readable technical terms where a natural target-language term existsmixed - translate ordinary prose terms while keeping code, infrastructure, and ecosystem terms unchangedThis is a stance, not a workflow. There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
.ai-factory/RESEARCH.md) only.paths.description, paths.architecture, paths.roadmap, paths.rules_file, plan files) are read-only in this mode.Depending on what the user brings, you might:
Explore the problem space
Investigate the codebase
Compare options
Visualize
+-----------------------------------------+
| Use ASCII diagrams liberally |
+-----------------------------------------+
| |
| +--------+ +--------+ |
| | State |-------->| State | |
| | A | | B | |
| +--------+ +--------+ |
| |
| System diagrams, state machines, |
| data flows, architecture sketches, |
| dependency graphs, comparison tables |
| |
+-----------------------------------------+
Surface risks and unknowns
You have access to AI Factory's project context. Use it naturally, don't force it.
Read .ai-factory/skill-context/aif-explore/SKILL.md — MANDATORY if the file exists.
This file contains project-specific rules accumulated by /aif-evolve from patches,
codebase conventions, and tech-stack analysis. These rules are tailored to the current project.
How to apply skill-context rules:
Enforcement: After generating any output artifact, verify it against all skill-context rules. If any rule is violated — fix the output before presenting it to the user.
At the start, read these files if present:
.ai-factory/DESCRIPTION.md — project description, tech stack, constraints.ai-factory/ARCHITECTURE.md — architecture decisions, folder structure/clear and still keep context)<configured plans dir>/<branch_stem>.md – active full plans (if any).
Compute branch_stem as git branch --show-current with every / replaced by -
(for example feature/user-auth → feature-user-auth).
When workflow.plan_id_format = sequential, glob first
<configured plans dir>/[0-9][0-9][0-9][0-9]_<branch_stem>.md and pick the
highest-numbered match; fall back to <configured plans dir>/<branch_stem>.md
when no numbered match exists.This tells you:
The argument after /aif-explore can be:
.ai-factory/plans/<name>.mdThink freely. When insights crystallize, you might offer:
/aif-plan?"If the user mentions a plan or you detect one is relevant:
Read existing plan for context
<configured plans dir>/<branch_stem>.md (full mode, default).
branch_stem = git branch --show-current with every / replaced by -
(so feature/user-auth resolves to feature-user-auth).
When workflow.plan_id_format = sequential, the filename is
<configured plans dir>/<NNNN>_<branch_stem>.md; pick the highest-numbered
match if more than one exists.Reference it naturally in conversation
Offer to capture when decisions are made
Default in explore mode: capture everything in the resolved research path so it survives /clear.
Later (during planning), you can migrate stabilized decisions into the appropriate context file.
| Insight Type | Capture Now (Explore) | Later (Optional) |
|--------------|------------------------|------------------|
| New requirement | paths.research | paths.description |
| Architecture decision | paths.research | paths.architecture |
| Project convention | paths.research | paths.rules_file |
| Strategic direction | paths.research | paths.roadmap |
| Assumption invalidated | paths.research | Relevant file |
| Exploration context (persisted) | paths.research | (keep in research) |
| New task/feature | Run /aif-plan | paths.plan or paths.plans/<branch_stem-or-slug>.md (or paths.plans/<NNNN>_<branch_stem-or-slug>.md under plan_id_format: sequential; branch_stem = current branch with / replaced by -) |
Example offers:
/clear and come back later?"The user decides - Offer and move on. Don't pressure. Don't auto-capture.
paths.research)If the conversation is crystallizing (you're about to plan, you want to /clear, or you want to continue later), offer to save a compact, durable research snapshot.
Hard rule in explore mode: If the user chooses to save, you may write/edit only the resolved research path (and create its parent directory if missing). Do not write or modify any other project files.
Write the saved research content in artifact_language. The skeleton below defines structure, not fixed English output. If artifact_language is not en, translate human-readable headings, labels, notes, and prose before saving. Preserve markdown markers, paths, commands, config keys, issue URLs, branch names, code identifiers, package names, and raw error messages unchanged.
Ask:
Save these exploration results to the resolved research path so we can /clear and /aif-plan can reuse them?
Options:
1. Yes — update Active Summary + append a new Session (recommended)
2. Yes — update Active Summary only
3. No
If user selects (1) or (2):
mkdir -p "$(dirname "<resolved research path>")")artifact_language before saving:# Research
Updated: YYYY-MM-DD HH:MM
Status: active
## Active Summary (input for /aif-plan)
<!-- aif:active-summary:start -->
Topic:
Goal:
Constraints:
Decisions:
Open questions:
Success signals:
Next step:
<!-- aif:active-summary:end -->
## Sessions
<!-- aif:sessions:start -->
<!-- aif:sessions:end -->
Updated: timestampaif:active-summary:start/end, written in artifact_language<!-- aif:sessions:end -->:### YYYY-MM-DD HH:MM — <short title>
What changed:
Key notes:
Links (paths):
Keep prior sessions verbatim (do not rewrite history).
User brings a vague idea:
User: I'm thinking about adding real-time collaboration
You: Real-time collab is a big space. Let me think about this...
COLLABORATION SPECTRUM
Awareness Coordination Sync
| | |
v v v
+--------+ +--------+ +--------+
|Presence| |Cursors | | CRDT |
| "3 | | Multi | |Conflict|
|online" | | select | | free |
+--------+ +--------+ +--------+
| | |
trivial moderate complex
Where's your head at?
User brings a specific problem:
User: The auth system is a mess
You: [reads codebase]
+---------------------------------------------+
| CURRENT AUTH FLOW |
+---------------------------------------------+
|
+-------------+-------------+
v v v
+---------+ +---------+ +---------+
| Google | | GitHub | | Email |
| OAuth | | OAuth | | Magic |
+----+----+ +----+----+ +----+----+
| | |
+-------------+-------------+
v
+-----------+
| Session |
+-----+-----+
|
v
+-----------+
| Perms |
+-----------+
I see three tangles. Which one's burning?
User is stuck mid-implementation:
User: /aif-explore add-auth-system
The OAuth integration is more complex than expected
You: [reads plan from .ai-factory/plans/add-auth-system.md]
You're on task 4: "Implement OAuth flow"
Let me trace what's involved...
[draws diagram, explores options, suggests paths]
Want to update the plan to reflect this?
Or add a spike task to investigate?
User wants to compare options:
User: Should we use Postgres or SQLite?
You: Generic answer is boring. What's the context?
User: A CLI tool that tracks local dev environments
You: That changes everything.
+---------------------------------------------+
| CLI TOOL DATA STORAGE |
+---------------------------------------------+
Key constraints:
* No daemon running
* Must work offline
* Single user
SQLite Postgres
Deployment embedded ok needs server no
Offline yes ok no no
Single file yes ok no no
SQLite. Not even close.
Unless... is there a sync component?
There's no required ending. Discovery might:
/aif-plan"When it feels like things are crystallizing, you might summarize:
## What We Figured Out
**The problem**: [crystallized understanding]
**The approach**: [if one emerged]
**Open questions**: [if any remain]
**Next steps** (if ready):
- Create a plan: /aif-plan [fast|full] <description>
- Keep exploring: just keep talking
But this summary is optional. Sometimes the thinking IS the value.
data-ai
Archive completed plans and roadmap milestones. Moves finished plans to the archive directory and optionally trims closed milestones from ROADMAP.md. Use when user says "archive plans", "clean up plans", "archive completed", or "trim roadmap".
tools
Set up agent context for a project. Analyzes tech stack, installs relevant skills from skills.sh, generates custom skills, and configures MCP servers. Use when starting new project, setting up AI context, or asking "set up project", "configure AI", "what skills do I need".
development
Verify completed implementation against the plan. Checks that all tasks were fully implemented, nothing was forgotten, code compiles, tests pass, and quality standards are met. Use after "/aif-implement" completes, or when user says "verify", "check work", "did we miss anything".
data-ai
Plan implementation for a feature or task. Two modes — fast (single quick plan) or full (richer plan with optional git branch/worktree flow). Use when user says "plan", "new feature", "start feature", "create tasks".