Accessing Dashboard Instructions
Navigate to your Dashboard settings:- Go to app.codeant.ai/settings/learnings
- Select Instructions from the dropdown menu
- Click Add New to create a new instruction
Creating Instructions
Step 1: Select Repositories
Choose which repositories should apply this instruction:- Use the search bar to find specific repositories
- Select multiple repositories using checkboxes
- All selected repositories will receive the same instruction
Step 2: Configure Instruction
Instruction Description (Required)- Provide a clear, specific description of what this instruction does
- Be explicit about the expected behavior or exceptions
- Specify which files this instruction applies to using glob patterns
- Click Add to include multiple patterns
- Use minimatch syntax for pattern matching
Sample Instructions
Framework and Version Specifications
React 18 with TypeScript:Language and Localization Preferences
Spanish Code Suggestions:Pattern Examples
Common File Patterns
Pattern | Description |
---|---|
**/*.{js,ts,jsx,tsx} | All JavaScript/TypeScript files |
src/components/**/*.tsx | React components only |
**/*.test.* | All test files |
!**/node_modules/** | Exclude dependencies |
*.config.{js,ts} | Configuration files |
docs/**/*.md | Documentation files |
src/{utils,helpers}/**/* | Utility functions |
**/*.d.ts | TypeScript declaration files |
Advanced Patterns
Pattern | Description |
---|---|
src/**/!(*.test).ts | TypeScript files excluding tests |
**/*.{story,stories}.{js,tsx} | Storybook files |
{src,lib}/**/*.{gql,graphql} | GraphQL files |
**/migrations/**/*.sql | Database migrations |
src/**/*.{module,service}.ts | NestJS modules and services |