在测试你的应用后,Devin 会记录它尝试过的步骤以及哪些方法奏效了——例如设置步骤、环境配置、如何启动应用——并建议通过 PR 创建或更新一个 Skill。你可以直接合并该 PR,或者在此基础上微调以优化说明。随着时间推移,这意味着 Devin 在测试你的项目方面会不断变得更好——每次会话的经验都会累积到下一次。你也可以在任何时候让 Devin 这样做(例如,“create a skill for how to test this app”)。关于创建和管理技能的完整说明,请参阅 Skills guide。下面是一个测试技能的示例:
复制
询问AI
---name: test-before-prdescription: Run the local dev server and verify pages before opening any PR that touches frontend code.---## Setup1. Install dependencies: `npm install`2. Start the database: `docker-compose up -d postgres`3. Run migrations: `npx prisma migrate dev`4. Start the dev server: `npm run dev`5. Wait for "Ready on http://localhost:3000"## Verify1. Read the git diff to identify which pages changed2. Open each affected page in the browser3. Check for: console errors, layout issues, broken links4. Screenshot each page at desktop (1280px) and mobile (375px) widths## Before Opening the PR1. Run `npm run lint` and fix any issues2. Run `npm test` and confirm all tests pass3. Include screenshots in the PR description