aif-explore
Skill10 starsChanged 6 months agoMITView on GitHub
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.
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- letuhao/lore-weaveedited, first seen Oct 17, 2026
- unxed/f4edited, first seen Oct 8, 2026
- lee-to/ai-factoryedited, first seen Sep 22, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- lee-to/ai-factory★ 1.2k34% same
- unxed/f4★ 26141% same
- letuhao/lore-weave★ 3588% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site-docs/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- aif-architectureSkill
- aif-best-practicesSkill
- aif-build-automationSkill
- aif-ciSkill
- aif-commitSkill
- aif-distillationSkill
- aif-dockerizeSkill
- aif-docsSkill
- aif-evolveSkill
- aif-fixSkill
- aif-groundedSkill
- aif-implementSkill
- aif-improveSkill
- aif-loopSkill
- aif-planSkill
- aif-qaSkill
- aif-referenceSkill
- aif-reviewSkill
- aif-roadmapSkill
- aif-rules-checkSkill
- aif-rulesSkill
- aif-security-checklistSkill
- aif-skill-generatorSkill
- aifSkill
- aif-verifySkill
- generate-claudemdSkill
- aif-architectureSkill
- aif-best-practicesSkill
- aif-build-automationSkill
- aif-ciSkill
- aif-commitSkill
- aif-distillationSkill
- aif-dockerizeSkill
- aif-docsSkill
- aif-evolveSkill
- aif-exploreSkill
- aif-fixSkill
- aif-groundedSkill
- aif-implementSkill
- aif-improveSkill
- aif-loopSkill
- aif-planSkill
- aif-qaSkill
- aif-referenceSkill
- aif-reviewSkill
- aif-roadmapSkill
- aif-rules-checkSkill
- aif-rulesSkill
- aif-security-checklistSkill
- aif-skill-generatorSkill
- aifSkill
- aif-verifySkill
- generate-claudemdSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 15 are common, 5 are distinctive, and 13 are very specific to this project.
15
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
FIRST: Read .ai-factory/config.yaml if it exists to resolve:
- Very specific: line 25
Treat any unknown value as slug.
- Very specific: line 27
If config.yaml doesn't exist, use defaults:
- Very specific: line 39
All other context artifacts (paths.description, paths.architecture, paths.roadmap, paths.rules_file, plan files) are read-only in this mode.
- Common: line 40
If a discovery should affect another artifact, capture it in RESEARCH now and route follow-up to the owner command later.
- Common: line 46
Curious, not prescriptive: - Ask questions that emerge naturally, don't follow a script
- Common: line 48
Visual: - Use ASCII diagrams liberally when they'd help clarify thinking
- Common: line 49
Adaptive: - Follow interesting threads, pivot when new information emerges
- Common: line 50
Patient: - Don't rush to conclusions, let the shape of the problem emerge
- Common: line 60
Ask clarifying questions that emerge from what they said
- Common: line 112
Treat them as project-level overrides for this skill's general instructions
- Very specific: line 113
When a skill-context rule conflicts with a general rule written in this SKILL.md,
- Very specific: line 115
When there is no conflict, apply both: general rules from SKILL.md + project rules from skill-context
- Common: line 116
Do NOT ignore skill-context rules even if they seem to contradict this skill's defaults — they exist because the project's experience …
- Common: line 123
Enforcement: After generating any output artifact, verify it against all skill-context rules.
- Common: line 124
If any rule is violated — fix the output before presenting it to the user.
- Very specific: line 138
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 …
- Common: line 147
If there's active work in progress
- Common: line 168
If the user mentions a plan or you detect one is relevant:
- Very specific: line 175
When workflow.plan_id_format = sequential, the filename is <configured plans dir>/<NNNN>_<branch_stem>.md.
- Very specific: line 185
Default in explore mode: capture everything in the resolved research path so it survives /clear.
- Very specific: line 206
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, …
- Common: line 208
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 …
- Common: line 221
If user selects (1) or (2):
- Very specific: line 222
Ensure the parent directory of the resolved research path exists (mkdir -p "$(dirname "<resolved research path>")")
- Common: line 223
If the resolved research path does not exist, create it with this skeleton:
- Very specific: line 247
Update the Updated: timestamp
- Very specific: line 249
If user selected option (1), append a new session entry just before <!-- aif:sessions:end -->:
- Distinctive: line 258
Keep prior sessions verbatim (do not rewrite history).
- Distinctive: line 265
Ask the same questions every time
- Distinctive: line 385
When it feels like things are crystallizing, you might summarize:
- Distinctive: line 407
Don't implement: - Never write code or implement features.
- Distinctive: line 408
Don't fake understanding: - If something is unclear, dig deeper
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Step 0: Load Config
FIRST: Read .ai-factory/config.yaml if it exists to resolve:
- Paths:
paths.description,paths.architecture,paths.rules_file,paths.roadmap,paths.research,paths.plan,paths.plans, andpaths.rules - Language:
language.uifor communication - Workflow:
workflow.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:slugandsequential. Whensequential, glob<paths.plans>/[0-9]{4}_<branch_stem>.mdfirst and fall back to<paths.plans>/<branch_stem>.mdonly if no numbered match is found.timestampanduuidare reserved values and currently behave likeslug. Treat any unknown value asslug.
If config.yaml doesn't exist, use defaults:
- Paths:
.ai-factory/for all artifacts - Language:
en(English) workflow.plan_id_format:slug
This 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.
Artifact Ownership
- Primary ownership in explore mode: the resolved research path (default:
.ai-factory/RESEARCH.md) only. - All other context artifacts (
paths.description,paths.architecture,paths.roadmap,paths.rules_file, plan files) are read-only in this mode. - If a discovery should affect another artifact, capture it in RESEARCH now and route follow-up to the owner command later.
The Stance
- Curious, not prescriptive - Ask questions that emerge naturally, don't follow a script
- Open threads, not interrogations - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
- Visual - Use ASCII diagrams liberally when they'd help clarify thinking
- Adaptive - Follow interesting threads, pivot when new information emerges
- Patient - Don't rush to conclusions, let the shape of the problem emerge
- Grounded - Explore the actual codebase when relevant, don't just theorize
What You Might Do
Depending on what the user brings, you might:
Explore the problem space
- Ask clarifying questions that emerge from what they said
- Challenge assumptions
- Reframe the problem
- Find analogies
Investigate the codebase
- Map existing architecture relevant to the discussion
- Find integration points
- Identify patterns already in use
- Surface hidden complexity
Compare options
- Brainstorm multiple approaches
- Build comparison tables
- Sketch tradeoffs
- Recommend a path (if asked)
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
- Identify what could go wrong
- Find gaps in understanding
- Suggest spikes or investigations
AI Factory Context
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:
- Treat them as project-level overrides for this skill's general instructions
- When a skill-context rule conflicts with a general rule written in this SKILL.md, the skill-context rule wins (more specific context takes priority — same principle as nested CLAUDE.md files)
- When there is no conflict, apply both: general rules from SKILL.md + project rules from skill-context
- Do NOT ignore skill-context rules even if they seem to contradict this skill's defaults — they exist because the project's experience proved the default insufficient
- CRITICAL: skill-context rules apply to ALL outputs of this skill — including exploration summaries, diagrams, and any file updates (DESCRIPTION.md, ARCHITECTURE.md). If a skill-context rule says "exploration MUST cover X" or "summary MUST include Y" — you MUST comply. Producing output that ignores skill-context rules is a bug.
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.
Check for context
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- the resolved RULES.md path – project conventions and rules
- the resolved RESEARCH.md path – persisted exploration notes (so you can
/clearand still keep context) - the resolved fast plan path – active fast plan (if any)
<configured plans dir>/<branch_stem>.md– active full plans (if any). Computebranch_stemasgit branch --show-currentwith every/replaced by-(for examplefeature/user-auth→feature-user-auth). Whenworkflow.plan_id_format = sequential, glob first<configured plans dir>/[0-9][0-9][0-9][0-9]_<branch_stem>.mdand pick the highest-numbered match; fall back to<configured plans dir>/<branch_stem>.mdwhen no numbered match exists.- the resolved ROADMAP.md path – strategic milestones (if any)
This tells you:
- What the project is about
- What conventions to follow
- If there's active work in progress
- Any prior exploration context worth carrying into planning
Input handling
The argument after $aif-explore can be:
- A vague idea: "real-time collaboration"
- A specific problem: "the auth system is getting unwieldy"
- A plan name: to explore in context of
.ai-factory/plans/<name>.md - A comparison: "postgres vs sqlite for this"
- Nothing: just enter explore mode
When no plan exists
Think freely. When insights crystallize, you might offer:
- "This feels solid enough to plan. Want me to start
$aif-plan?" - Or keep exploring - no pressure to formalize
When a plan exists
If the user mentions a plan or you detect one is relevant:
- Read existing plan for context
- the resolved fast plan path (fast mode)
<configured plans dir>/<branch_stem>.md(full mode, default).branch_stem=git branch --show-currentwith every/replaced by-(sofeature/user-authresolves tofeature-user-auth). Whenworkflow.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
- "Your plan mentions adding Redis, but we just realized SQLite fits better..."
- "Task 3 scopes this to premium users, but we're now thinking everyone..."
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.researchpaths.descriptionArchitecture decision paths.researchpaths.architectureProject convention paths.researchpaths.rules_fileStrategic direction paths.researchpaths.roadmapAssumption invalidated paths.researchRelevant file Exploration context (persisted) paths.research(keep in research) New task/feature Run $aif-planpaths.planorpaths.plans/<branch_stem-or-slug>.md(orpaths.plans/<NNNN>_<branch_stem-or-slug>.mdunderplan_id_format: sequential;branch_stem= current branch with/replaced by-)Example offers:
- "Want me to save this to the resolved research path so you can
/clearand come back later?" - "That's an architecture decision — save it to RESEARCH now and we can migrate it to ARCHITECTURE during planning."
- "Want me to save this to the resolved research path so you can
- The user decides - Offer and move on. Don't pressure. Don't auto-capture.
Optional: Persist exploration context (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.
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. NoIf user selects (1) or (2):
- Ensure the parent directory of the resolved research path exists (
mkdir -p "$(dirname "<resolved research path>")") - If the resolved research path does not exist, create it with this skeleton:
# 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 -->- Update the
Updated:timestamp - Replace only the content inside
aif:active-summary:start/end - If user selected option (1), append a new session entry just before
<!-- aif:sessions:end -->:
### YYYY-MM-DD HH:MM — <short title>
What changed:
Key notes:
Links (paths):Keep prior sessions verbatim (do not rewrite history).
What You Don't Have To Do
- Follow a script
- Ask the same questions every time
- Produce a specific artifact
- Reach a conclusion
- Stay on topic if a tangent is valuable
- Be brief (this is thinking time)
Handling Different Entry Points
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?Ending Discovery
There's no required ending. Discovery might:
- Flow into action: "Ready to plan? Run
$aif-plan" - Result in context updates: "Updated ARCHITECTURE.md with these decisions"
- Just provide clarity: User has what they need, moves on
- Continue later: "We can pick this up anytime"
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 talkingBut this summary is optional. Sometimes the thinking IS the value.
Guardrails
- Don't implement - Never write code or implement features. Updating AI Factory context files is fine, writing application code is not.
- Don't fake understanding - If something is unclear, dig deeper
- Don't rush - Discovery is thinking time, not task time
- Don't force structure - Let patterns emerge naturally
- Don't auto-capture - Offer to save insights, don't just do it
- Do visualize - A good diagram is worth many paragraphs
- Do explore the codebase - Ground discussions in reality
- Do question assumptions - Including the user's and your own
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

