nextjs-setup
Installation
SKILL.md
Next.js Setup
Create a new Next.js app or update an existing one with the user's preferred baseline.
Start
- Ask for the target path before running setup or edits.
- Resolve the target path to an absolute path.
- Inspect whether it already contains a Next.js app:
- existing app:
package.jsonwithnextin dependencies/devDependencies, or Next files such asnext.config.*,app/, orpages/ - new app: target path does not exist or has no Next.js project
- existing app:
- Read
references/baseline.mdbefore changing files.
New App Flow
- Ensure the parent directory exists, creating it if needed.
- Run setup from the parent directory: