Skip to content

Conversation

sestinj
Copy link
Contributor

@sestinj sestinj commented Sep 22, 2025

Summary

  • Updated the /init slash command prompt to instruct the model to create a custom slash command file
  • The slash command file is created at .continue/rules/review.md with proper frontmatter structure
  • The review prompt provides instructions for common code review tasks

Changes

  • Modified extensions/cli/src/commands/init.ts to include instructions for creating a slash command file
  • The slash command follows the required structure with invokable: true in the frontmatter
  • The review prompt focuses on code quality, performance, security, error handling, testing, and documentation

Test Plan

  • Run /init command in the CLI
  • Verify that both AGENTS.md and .continue/rules/review.md files are created
  • Confirm the slash command file has correct frontmatter structure
  • Test that the /review command becomes available after file creation

🤖 Generated with Claude Code


Summary by cubic

Enhanced /init to also scaffold a /review slash command by generating .continue/rules/review.md with invokable frontmatter, alongside AGENTS.md. This makes a ready-to-use code review command available right after initialization.

  • New Features
    • Updated CLI init prompt to create both AGENTS.md and a review slash command file.
    • Generates .continue/rules/review.md (invokable: true) with repo-aware review guidance.
    • Enables the /review command by default after running /init.

Update the /init slash command prompt to also create a custom "review"
slash command file at .continue/rules/review.md with invokable frontmatter
and review-focused instructions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@sestinj sestinj requested a review from a team as a code owner September 22, 2025 05:43
@sestinj sestinj requested review from Patrick-Erichsen and removed request for a team September 22, 2025 05:43
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 22, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="extensions/cli/src/commands/init.ts">

<violation number="1" location="extensions/cli/src/commands/init.ts:47">
Claim that /review will be invokable is likely incorrect without setting a name; default name becomes rules/review.md. Clarify instruction or set name in frontmatter.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Provide specific, actionable feedback for improvements.
\`\`\`
This slash command will be invokable using /review and will provide instructions for code review tasks common to this repository.
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Sep 22, 2025

Choose a reason for hiding this comment

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

Claim that /review will be invokable is likely incorrect without setting a name; default name becomes rules/review.md. Clarify instruction or set name in frontmatter.

Prompt for AI agents
Address the following comment on extensions/cli/src/commands/init.ts at line 47:

<comment>Claim that /review will be invokable is likely incorrect without setting a name; default name becomes rules/review.md. Clarify instruction or set name in frontmatter.</comment>

<file context>
@@ -30,7 +30,23 @@ Create an AGENTS.md file with the following structure:
+Provide specific, actionable feedback for improvements.
+\`\`\`
+
+This slash command will be invokable using /review and will provide instructions for code review tasks common to this repository.
+
+Please create both the AGENTS.md file and the .continue/rules/review.md file using the Write tool after analyzing the repository. Focus on providing actionable information that would help both AI agents and human developers understand and work effectively with this codebase. Keep the files concise but informational.`;
</file context>
Fix with Cubic

Copy link
Collaborator

@Patrick-Erichsen Patrick-Erichsen left a comment

Choose a reason for hiding this comment

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

Instead of a hardcoded string/filepath instructions we should use the same logic that we have in core/tools/implementations/createRuleBlock.ts

Otherwise this will almost certainly break at some point in the future

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 22, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants