-
Notifications
You must be signed in to change notification settings - Fork 294
Add debug, architect, and deep-research modes #844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
phravins
wants to merge
5
commits into
MoonshotAI:main
Choose a base branch
from
phravins:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e173086
add(skill): added the debug,architect,deep-research mode
phravins 64c32ca
Merge branch 'main' into main
phravins 300aa66
Merge branch 'MoonshotAI:main' into main
phravins 85f4086
Merge branch 'MoonshotAI:main' into main
phravins dbac805
Merge branch 'MoonshotAI:main' into main
phravins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| name: architect | ||
| description: Enter Architect mode. Use this command when you want the agent to design or explain the system architecture, design patterns, and structural layout of the project without immediately implementing code. | ||
| type: inline | ||
| --- | ||
|
|
||
| # Architect Mode | ||
|
|
||
| You are now in **Architect** mode. | ||
|
|
||
| Your primary objective is to design, explain, or review the project's architecture. Follow these rules: | ||
| 1. Provide a high-level system architecture, design patterns, and structural layout for the project or the specific feature requested. | ||
| 2. Focus on component interactions, data flow, interface definitions, and overall system boundaries. | ||
| 3. Use mermaid diagrams, clear lists, and structural explanations to convey the architecture. | ||
| 4. Do **not** write implementation-level code unless specifically requested as a small example. Keep the focus on design. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { parseSkillText } from '../parser'; | ||
| import type { SkillDefinition } from '../types'; | ||
| import ARCHITECT_BODY from './architect.md?raw'; | ||
|
|
||
| const PSEUDO_PATH = 'builtin://architect'; | ||
|
|
||
| const parsed = parseSkillText({ | ||
| skillMdPath: '/builtin/skills/architect.md', | ||
| skillDirName: 'architect', | ||
| source: 'builtin', | ||
| text: ARCHITECT_BODY, | ||
| }); | ||
|
|
||
| export const ARCHITECT_SKILL: SkillDefinition = { | ||
| ...parsed, | ||
| path: PSEUDO_PATH, | ||
| dir: PSEUDO_PATH, | ||
| metadata: { | ||
| ...parsed.metadata, | ||
| type: parsed.metadata.type ?? 'inline', | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| name: debug | ||
| description: Enter Debug mode. Use this command when you want the agent to focus solely on debugging an issue, analyzing logs/errors, and proposing a specific fix without implementing new features. | ||
| type: inline | ||
| --- | ||
|
|
||
| # Debug Mode | ||
|
|
||
| You are now in **Debug** mode. | ||
|
|
||
| Your primary objective is to debug the current issue. Follow these rules: | ||
| 1. Analyze the provided code, logs, or error messages carefully to identify the root cause of the bug. | ||
| 2. Formulate a specific, targeted fix for the problem. | ||
| 3. Do **not** implement new features, refactor unrelated code, or make sweeping architectural changes unless strictly necessary to fix the bug. | ||
| 4. Explain the root cause clearly before proposing the fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { parseSkillText } from '../parser'; | ||
| import type { SkillDefinition } from '../types'; | ||
| import DEBUG_BODY from './debug.md?raw'; | ||
|
|
||
| const PSEUDO_PATH = 'builtin://debug'; | ||
|
|
||
| const parsed = parseSkillText({ | ||
| skillMdPath: '/builtin/skills/debug.md', | ||
| skillDirName: 'debug', | ||
| source: 'builtin', | ||
| text: DEBUG_BODY, | ||
| }); | ||
|
|
||
| export const DEBUG_SKILL: SkillDefinition = { | ||
| ...parsed, | ||
| path: PSEUDO_PATH, | ||
| dir: PSEUDO_PATH, | ||
| metadata: { | ||
| ...parsed.metadata, | ||
| type: parsed.metadata.type ?? 'inline', | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| name: deep-research | ||
| description: Enter Deep Research mode. Use this command when you want the agent to focus solely on deeply researching a topic and outputting the findings as a markdown (.md) file. | ||
| type: inline | ||
| --- | ||
|
|
||
| # Deep Research Mode | ||
|
|
||
| You are now in **Deep Research** mode. | ||
|
|
||
| Your primary objective is to thoroughly research the user's topic. Follow these rules: | ||
| 1. Focus entirely on researching the topic comprehensively. | ||
| 2. Formulate your findings into a detailed and well-structured report. | ||
| 3. Output the final research findings as a markdown (`.md`) file saved in the project or workspace. | ||
| 4. Do not make unrelated code changes or deviate from the research objective. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { parseSkillText } from '../parser'; | ||
| import type { SkillDefinition } from '../types'; | ||
| import DEEP_RESEARCH_BODY from './deep-research.md?raw'; | ||
|
|
||
| const PSEUDO_PATH = 'builtin://deep-research'; | ||
|
|
||
| const parsed = parseSkillText({ | ||
| skillMdPath: '/builtin/skills/deep-research.md', | ||
| skillDirName: 'deep-research', | ||
| source: 'builtin', | ||
| text: DEEP_RESEARCH_BODY, | ||
| }); | ||
|
|
||
| export const DEEP_RESEARCH_SKILL: SkillDefinition = { | ||
| ...parsed, | ||
| path: PSEUDO_PATH, | ||
| dir: PSEUDO_PATH, | ||
| metadata: { | ||
| ...parsed.metadata, | ||
| type: parsed.metadata.type ?? 'inline', | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These registrations expose
/deep-research,/debug, and/architectas built-in skill slash commands through the existing skill command plumbing, so this is a user-visible CLI behavior change. The repo guide in/workspace/kimi-code/AGENTS.mdrequires a changeset for such changes, and without a.changeset/*.mdentry the release PR will not bump or announce the affected publishable package.Useful? React with 👍 / 👎.