Skip to content

Create an explore skill#9

Open
mark-kraemer wants to merge 1 commit intomainfrom
explore-skill
Open

Create an explore skill#9
mark-kraemer wants to merge 1 commit intomainfrom
explore-skill

Conversation

@mark-kraemer
Copy link
Copy Markdown
Member

@mark-kraemer mark-kraemer commented Mar 9, 2026

This skill is used to generate the /explore command to assess a codebase and help a developer understand how parts of it work. Could be useful for a new developer joining a project or assessing/learning an inherited brownfield application.

image image

@@ -0,0 +1,68 @@
# Domain Map Template
Copy link
Copy Markdown
Member Author

@mark-kraemer mark-kraemer Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You basically add this skill and then remove it. You would need to add a generate-explore.md prompt for it to be run with the following. I wonder if there's a better way to do this...

---
description: Analyzes this codebase and generates a customized /explore skill in .agents/explore/
---

[generate-explore skill](.agents/generate-explore/SKILL.md)

Then you need to add the explore.md prompt so you can call /explore in vscode

---
description: Architecture guide for C12 Core. Use when asked about architecture, how code is structured, or when tracing code through the stack.
---

[explore skill](.agents/explore/SKILL.md)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new generate-explore skill that can analyze an arbitrary repository and generate a customized .agents/explore/ skill (plus reference docs) to help developers understand architecture, drill into topics/paths, and trace code backwards.

Changes:

  • Introduces skills/generate-explore/SKILL.md defining the multi-phase “analyze → generate → validate → report” workflow.
  • Adds three reference templates (SKILL, domain discovery map, trace playbook) that the generator fills in to produce the .agents/explore/ output.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
skills/generate-explore/SKILL.md New generator skill that discovers stack/structure and outputs a tailored /explore skill + references.
skills/generate-explore/references/SKILL_TEMPLATE.md Template for the generated .agents/explore/SKILL.md (3 modes + follow-up).
skills/generate-explore/references/DOMAIN_MAP_TEMPLATE.md Template for discovery conventions and a “Domain Profile” output format.
skills/generate-explore/references/TRACE_PLAYBOOK_TEMPLATE.md Template for the trace-backwards algorithm and stack-diagram output format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +138 to +142
Present the trace as a vertical stack:

```
{{STACK_DIAGRAM_FORMAT}}
```
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The template wraps the entire generated file in a markdown fenced block, but later uses triple-backtick fences again for the stack diagram. In Markdown, that inner will terminate the outer fence early, so the template won’t render/copy correctly. Use a different outer fence delimiter (e.g., 4 backticks) or switch the inner diagram fence to tildes/indented code so nested fences don’t conflict.

Copilot uses AI. Check for mistakes.
Comment on lines +46 to +48
```
{{STACK_DIAGRAM_FORMAT}}
```
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This template encloses the generated playbook in a ```markdown code fence, but the stack-diagram example uses triple backticks inside it. That closes the outer fence, breaking the template structure and copy/paste instructions. Use a different outer fence delimiter (e.g., 4 backticks) or change the inner example to a non-conflicting fence (tildes/indented code).

Suggested change
```
{{STACK_DIAGRAM_FORMAT}}
```
~~~
{{STACK_DIAGRAM_FORMAT}}
~~~

Copilot uses AI. Check for mistakes.
Comment on lines +47 to +51
```
## <Concept> Domain Profile

{{PROFILE_SECTIONS}}
```
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The template is wrapped in a markdown fenced block, but the Domain Profile section includes an inner triple-backtick fence. That inner will end the outer fence, so the rendered template and the intended generated output won’t match. Use a different outer fence delimiter (e.g., 4 backticks) or change the inner example fence to tildes/indented code.

Suggested change
```
## <Concept> Domain Profile
{{PROFILE_SECTIONS}}
```
~~~
## <Concept> Domain Profile
{{PROFILE_SECTIONS}}
~~~

Copilot uses AI. Check for mistakes.
@mark-kraemer mark-kraemer requested a review from OutlawAndy March 9, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants