AGENTS.md · justjavac/wechat-miniapp-radar
AGENTS.md from justjavac/wechat-miniapp-radar: 109 lines covering 项目结构, 本地运行, 常用任务, 生成文件 and more.
Template by justjavac
Chalk Labs
Need help deploying AGENTS.md · justjavac/wechat-miniapp-radar?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/justjavac/wechat-miniapp-radar/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 109 lines
- File
AGENTS.md
Sections
- 项目结构
- 本地运行
- 常用任务
- 生成文件
- 环境变量
- 部署检查
- Git 与发布流程
First lines (shown under the repo's GPL-3.0 license)
# 小程序雷达开发指南 本文件面向开发者和代码代理。README 面向最终用户,资源列表由 `data/resources.yaml` 生成,不要在 README 里维护开发、部署和运维细节。 ## 项目结构 - `app/`:Next.js App Router 页面和 API route。 - `components/`:共享 UI 组件。 - `lib/`:业务逻辑、AI、缓存、健康检查、评分、数据库映射和运维辅助模块。 - `db/`:Drizzle schema 与数据库客户端。 - `scripts/`:数据生成、验证、导入、运维和测试脚本。 - `data/resources.yaml`:资源数据源。 - `public/api/resources.json`:由 `npm run generate` 生成的静态资源快照。 - `public/api/ai-summaries.json`、`public/api/radar-scores.json`、`public/api/weekly/*`:生成快照。 - `docs/`:本地实施文档,仅保留在本地,不纳入版本库。 ## 本地运行 ```bash npm install npm run dev ``` 生产构建: ```bash npm run build ``` 完整校验: ```bash npm run check ``` ## 常用任务 ```bash npm run generate npm run generate:check npm run validate npm run typecheck npm run deploy:check npm run integrations:verify npm run db:verify npm run db:import:test npm run advisor:test npm run doctor:test npm run cli:test npm run deployment:verify -- https://your-project.vercel.app npm run mvp:check npm run vercel:preflight -- https://your-project.vercel.app npm run production:bootstrap -- https://your-project.vercel.app ``` CLI examples: ```bash npx miniprogram-radar health --out=health.md npx miniprogram-radar resources --type=framework --status=adopt --format=csv --out=resources.csv npx miniprogram-radar compare --ids=github-com-nervjstaro,github-com-dcloudiouni-app --out=compare.md npx miniprogram-radar advisor "React 团队做电商小程序,应该选 Taro 还是原生?" npx miniprogram-radar advisor "React 团队做电商小程序,应该选 Taro 还是原生?" --prompt --out=advisor-prompt.json npx miniprogram-radar doctor ./my-weapp ``` ## 生成文件 - 修改 `data/resources.yaml` 后运行 `npm run generate`。 - README 和 `public/api/resources.json` 都由 `scripts/generate.ts` 生成。 - CI 会运行 `npm run generate:check`,生成源和生成产物必须一致。 ## 环境变量 参考 `.env.example`。 - `DATABASE_URL`:可选,配置后资源导入、采集信号、Advisor 会话和周报会写入 Postgres。 - `SITE_URL` / `NEXT_PUBLIC_SITE_URL`:可选,配置生产站点根地址,用于 canonical sitemap 和 robots 地址。 - `CRON_SECRET`:建议配置,用于保护 `/api/cron/*`。 - `ADMIN_TOKEN`:建议配置,用于保护 `/admin` 和 `/api/admin/*`。 - `GITHUB_TOKEN`:可选,提高 GitHub 采集额度。 - `OPENAI_API_KEY`:可选,用于真实 AI Advisor;未配置、超时或校验失败时使用规则建议。可使用 OpenRouter API key。 - `OPENAI_API_URL`:可选,OpenAI-compatible endpoint;OpenRouter 使用 `https://openrouter.ai/api/v1`。 - `OPENAI_MODEL`:可选,主模型,默认 `openai/gpt-oss-20b:free`。 - `OPENAI_FALLBACK_MODEL`:可选,备用模型,默认 `nvidia/nemotron-nano-9b-v2:free`。 - `BLOB_READ_WRITE_TOKEN`:可选,用于上传周报快照、资源导出快照和 Doctor 报告。 - `UPSTASH_REDIS_REST_URL`、`UPSTASH_REDIS_REST_TOKEN` 或 Vercel Marketplace 注入的 `KV_REST_API_URL`、`KV_REST_API_TOKEN`:可选,用于 Advisor 缓存和分布式限流;未配置时使用内存兜底。 - `OPERATION_LOG_RETENTION_DAYS`:可选,运行日志保留天数,默认 30 天。 - `VERCEL_TOKEN`、`VERCEL_PROJECT_ID`、`VERCEL_ORG_ID`:可选,用于非交互 Vercel CLI 部署或 preflight。 ## 部署检查 - 健康检查:`GET /api/health`,包含资源快照、数据库、集成配置和最近一次 AI Advisor 运行状态。 - 数据库验证:`EXPECT_DATABASE=1 npm run db:verify` - GitHub/Blob/Redis 验证:`EXPECT_GITHUB=1 EXPECT_BLOB=1 EXPECT_UPSTASH_REDIS=1 npm run integrations:verify` - 生产就绪 API:`GET /api/admin/readiness`,需 `ADMIN_TOKEN`。 - Vercel 部署前置检查:`npm run vercel:preflight -- <production-url>` - MVP 收口检查:`npm run mvp:check`;严格上线模式:`EXPECT_MVP=1 EXPECT_SITE_URL=1 EXPECT_OPENAI=1 npm run mvp:check -- <production-url>` - 生产初始化计划:`npm run production:bootstrap -- <production-url>`;执行迁移、导入和线上验证时追加 `execute`。 - 生产验证:`VERIFY_CRON_SECRET=<CRON_SECRET> VERIFY_ADMIN_TOKEN=<ADMIN_TOKEN> npm run deployment:verify -- <production-url>` ## Git 与发布流程 - 不直接推送到 `main`。 - 按逻辑分步提交:文档、代码、清理、测试规则等不同类型变更尽量拆成独立 commit。 - 功能和修复使用独立分支,创建 PR 后通过 Vercel Preview 验证。 - Preview 和 GitHub checks 通过后再合并。 - 合并后等待 Vercel Production 部署完成,并确认 `Verify Vercel Production` workflow 通过。
Signals
- Stars
- 51,177
- Forks
- 8,970
- Open issues
- 0
- Last commit (this folder)
- Jul 8, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · justjavac/wechat-miniapp-radar running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · justjavac/wechat-miniapp-radar. Agent Mart. https://agentmart.dev/templates/justjavac-wechat-miniapp-radar-agents-md (last updated 2026-10-24)