Automatically extract coding conventions and preferences from your project and generate tailored instructions for AI code assistants like GitHub Copilot, Cursor, and more.
- π Zero Configuration: Just run the CLI and it automatically detects your project's setup
- π Generates Instructions: Creates a markdown file with AI-ready instructions
- π Editor Integration: Works seamlessly with GitHub Copilot, Cursor, Windsurf, and other AI assistants
- π― Deep Project Analysis: Detects 14+ different aspects including frameworks (Next.js, Vue), testing tools (Jest, AVA), databases (Prisma), UI libraries (Tailwind), and state management (Zustand)
- π§ Smart Configuration Detection: Automatically identifies project conventions from config files, package.json, and code patterns
- π Multi-Language Support: Works with JavaScript, TypeScript, and detects specific build tools, linters, and development workflows
- No More Repetition: Stop typing the same instructions every time you chat with AI
- Consistency: Ensure all team members give the same instructions to AI assistants
- Time Saver: Automatically detect project conventions without manual effort
- Project Onboarding: Help new team members understand coding standards through AI
- Lightweight & Fast: Focused CLI design means quick installation and execution
# Run directly without installing (recommended)
npx psst-ai
# Or with pnpm
pnpm dlx psst-ai
# Or with yarn
yarn dlx psst-ai
# Specify a custom directory to scan
npx psst-ai /path/to/your/project
Want to install globally?
pnpm add -g psst-ai # or npm install -g psst-ai
That's it! The tool will:
- Scan your project files and configuration
- Detect coding conventions and preferences
- Print the AI-ready instructions directly to your terminal
After running the tool, you'll see instructions printed to your terminal based on your project's conventions. The output is organized by category and provides specific, actionable guidance:
## Linting
- Use eslint for linting.
## Next.js
- Use Next.js as the React framework.
- Use the App Router directory structure in Next.js.
- Use React strict mode in Next.js.
## Node Version
- Use the nodejs version specified in the .nvmrc file (v22.15.1).
## Package Manager
- Use pnpm as the package manager.
## Tailwind CSS
- Use Tailwind CSS utility classes for styling. Keep custom CSS minimal and prefer utility-first approach.
- Using @tailwindcss/forms plugin. This provides better default styling for form elements.
## Testing
- Use vitest testing framework.
The instructions are automatically generated based on what psst-ai detects in your project - configuration files, dependencies, file patterns, and coding conventions.
Currently, psst-ai can detect: See our scanners documentation for a complete list of everything psst-ai can detect.
- Copy the output from your terminal
-
Paste into your AI assistant's instructions panel:
- GitHub Copilot: Chat instructions
- Cursor: Workspace instructions
- VS Code AI Assistant: Custom instructions
- Other AI coding tools: Custom prompts section
Insert the start and end tags <!-- PSST-AI-INSTRUCTIONS-START -->
and <!-- PSST-AI-INSTRUCTIONS-END -->
in your instruction file, and psst-ai will replace the content between these tags with the generated instructions.
# Coding Guidelines for This Project
<!-- PSST-AI-INSTRUCTIONS-START -->
<!-- Your AI instructions will be inserted here -->
<!-- PSST-AI-INSTRUCTIONS-END -->
Before: paste the instruction tags (including both start and end tags) into your instructions file and run the command in your favorite editor:
For VS Code's GitHub Copilot Chat, place your instructions file in .github/copilot-instructions.md
and run:
npx psst-ai -f ./.github/copilot-instructions.md
For Cursor AI, place your instructions file in .cursor/rules/ai-instructions.mdc
and run:
npx psst-ai -f ./.cursor/rules/ai-instructions.mdc
For Windsurf AI, place your instructions file in .windsurf/rules/ai-instructions.md
and run:
npx psst-ai -f ./.windsurf/ai-instructions.md
-o, --output <path> Save output to a file
--no-header Flatten output without category headers
-f, --file <path> File path to update with AI instructions