New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

create-agent-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-agent-config

Scaffold AI agent config files for any project. Detects your stack, pulls community rules from cursor.directory, writes configs for Cursor, Claude Code, Copilot, Windsurf, Cline, and AGENTS.md.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

create-agent-config

Your AI coding agent starts every session blind. Fix that in 30 seconds.

npm version npm downloads CI TypeScript License: MIT

npm create agent-config

Scans your project, detects your stack, pulls community best practices from cursor.directory, and writes config files for every major AI coding tool. You pick which files to create, review what will be written, and confirm before anything touches disk.

What exactly happens

  • Scans your project directory (package.json, tsconfig, lockfiles, config files)
  • Detects languages, frameworks, test runners, build tools, package manager
  • Fetches matching community rules from cursor.directory's open source repository (optional, skippable with --offline)
  • Shows you every file it plans to create and where
  • Asks for confirmation before writing anything
  • Writes the files you approved. Existing files are never overwritten.

Nothing is executed, uploaded, or sent to any API. The only network call is a GET request to raw.githubusercontent.com to fetch community rules. Pass --offline to skip it entirely.

What gets created and where

You choose which files to generate. Here's every possible output:

FileLocationUsed by
AGENTS.mdproject rootCodex, Devin, Jules, SWE-agent, 40+ tools
CLAUDE.mdproject rootClaude Code
.cursor/rules/project.mdc.cursor/rules/ directoryCursor IDE (modern .mdc format)
.github/copilot-instructions.md.github/ directoryGitHub Copilot
.windsurfrulesproject rootWindsurf / Codeium
.clinerulesproject rootCline

Each file contains your detected stack info (languages, frameworks, commands, conventions) plus community best practices if you opted in. The content is project-specific, not generic boilerplate.

Usage

# interactive mode (recommended)
npm create agent-config

# also works with npx
npx create-agent-config

# target a different directory
npx create-agent-config ./my-project

# skip network, use built-in templates only
npx create-agent-config --offline

What gets detected

CategoryExamples
LanguagesTypeScript, JavaScript, Python, Rust, Go
FrameworksNext.js, React, Vue, Nuxt, Angular, Svelte, SvelteKit, Astro, Remix, NestJS, Express, Fastify, Hono, Electron, Django, Flask, FastAPI
Test runnersVitest, Jest, Mocha, Playwright, Cypress, pytest
Build toolstsup, esbuild, rollup, Vite, Webpack
Package managersnpm, pnpm, yarn, bun
MonorepoTurborepo, Nx, Lerna, workspaces

Detection reads config files and package.json. Nothing is executed.

Community rules

When online, the tool fetches framework-specific best practices from cursor.directory's open source repository on GitHub. These are community-curated rules maintained by 160+ contributors covering React, Next.js, TypeScript, Python, Vue, Angular, Svelte, NestJS, and many more.

You're asked whether to include them. If you decline or the fetch fails, the tool falls back to built-in defaults.

Example output

Running against a Next.js + TypeScript project generates an AGENTS.md like this:

# my-app

## Project

Languages: TypeScript
Frameworks: Next.js, React
Testing: Vitest
Package manager: pnpm

## Commands

- Dev server: `pnpm dev`
- Build: `pnpm build`
- Test: `pnpm test`
- Lint: `pnpm lint`

## Conventions

- Use TypeScript strict mode
- Prefer `const` over `let`, avoid `any`
- Use explicit return types on exported functions
- Functional components only, no class components
- Use hooks for state and side effects

## Best Practices

[community rules from cursor.directory for Next.js + React]

## Rules

- Do not modify generated files in `dist/` or `build/`
- Run tests before committing
- Keep commits small and focused

The .cursor/rules/project.mdc version includes YAML frontmatter with alwaysApply: true.

Contributing

Contributions welcome. See CONTRIBUTING.md.

Author

Made by ofershap

LinkedIn GitHub

License

MIT © Ofer Shapira

Keywords

agent-config

FAQs

Package last updated on 05 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts