@gensx/cline-rules
v0.1.8
Published
Cline rules for GenSX projects.
Readme
@gensx/cline-rules
This package installs a .clinerules file to your project, providing project-specific instructions for Cline editor when working with GenSX projects.
Overview
Cline's .clinerules file provides project-specific instructions that are automatically appended to your custom instructions and referenced in Cline's system prompt, ensuring they influence all interactions within the project context.
Installation and Usage
You can install the Cline rules directly from npm without adding the package as a dependency:
# Run directly with npx to install the rules
npx @gensx/cline-rulesAlternatively, you can install it as a dependency:
npm install --save-dev @gensx/cline-rules
# or
yarn add -D @gensx/cline-rules
# or
pnpm add -D @gensx/cline-rulesThen run the CLI:
npx gensx-cline-rulesFeatures
- Installs a
.clinerulesfile to your project root - Provides project-specific guidance to Cline for working with GenSX projects
- Uses managed sections to preserve your customizations during updates
- Creates backups of existing files when making updates
What's Included
The included .clinerules file contains:
- Common GenSX coding patterns and conventions
- Code style preferences
- GenSX component patterns with code examples
- Provider usage examples
- Testing and documentation standards
Managed Sections
The .clinerules file uses managed sections delimited by HTML comments:
<!-- BEGIN_MANAGED_SECTION -->
... managed content that will be updated ...
<!-- END_MANAGED_SECTION -->When upgrading or reinstalling the rules, only the content within these markers will be updated, preserving any custom content you've added outside of the managed section.
Customization
Add your custom project information outside the managed section to preserve it during updates.
A section at the bottom of the file is provided specifically for your custom content.
License
Apache-2.0
