Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Scores, compiles & optimizes prompts for any LLM. Zero AI calls inside. Freemium.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
PROMPT_OPTIMIZER_PRO, PROMPT_OPTIMIZER_LOG_LEVELต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"claude-prompt-optimizer": {
"command": "npx",
"args": [
"-y",
"claude-prompt-optimizer-mcp"
],
"env": {
"PROMPT_OPTIMIZER_PRO": "ใส่ค่าของคุณ",
"PROMPT_OPTIMIZER_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add claude-prompt-optimizer --env PROMPT_OPTIMIZER_PRO='ใส่ค่าของคุณ' --env PROMPT_OPTIMIZER_LOG_LEVEL='ใส่ค่าของคุณ' -- npx -y claude-prompt-optimizer-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"claude-prompt-optimizer": {
"command": "npx",
"args": [
"-y",
"claude-prompt-optimizer-mcp"
],
"env": {
"PROMPT_OPTIMIZER_PRO": "ใส่ค่าของคุณ",
"PROMPT_OPTIMIZER_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"claude-prompt-optimizer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"claude-prompt-optimizer-mcp"
],
"env": {
"PROMPT_OPTIMIZER_PRO": "ใส่ค่าของคุณ",
"PROMPT_OPTIMIZER_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
PROMPT_OPTIMIZER_PRO envPROMPT_OPTIMIZER_LOG_LEVEL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub rishiatlan ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2.2.2) เข้า registry 8 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
The control plane for AI prompts. Score, enforce policy, lock config, and audit every prompt decision. Free tier included.
# Install globally (requires Node.js 20+)
npm install -g pcp-engine
pcp preflight "your prompt here" --json
pcp demo
Two powerhouse commands:
| Command | What it does |
|---|---|
pcp preflight "prompt" | The lead command. Classify, assess risk, route model, score: one call covers 90% of use cases |
pcp optimize "prompt" | Full pipeline. Analyze, compile, surface blocking questions, produce PreviewPack for approval |
Supporting commands:
| Command | What it does |
|---|---|
pcp check "prompt" | Quick quality score + top issues |
pcp score "prompt" | Full 5-dimension quality breakdown |
pcp cost "prompt" | Cost estimate across 21 costed models |
pcp benchmark | Run 15-prompt regression suite |
Free tier gives you 50 optimizations/month to try it out.
# Pre-flight a vague prompt: see why it scores low
pcp preflight "make the code better" --json
pcp preflight "Refactor auth middleware in src/auth/middleware.ts to use JWT. Do not modify the user model." --json
pcp optimize "Build a REST API with auth" --json
pcp check --file "prompts/**/*.txt"
pcp demo
# .github/workflows/prompt-quality.yml
Full GitHub Action configuration
# .github/workflows/pcp.yml
name: Prompt Quality Gate on: [push, pull_request] jobs: lint: runs-on: ubuntu-latest permissions: pull-requests: write steps:
Run optimize in CI (full pipeline):
- uses: rishi-banerjee1/prompt-control-plane@v5
with: subcommand: optimize files: 'prompts/**/*.txt'
This action expects your repo to be checked out (
actions/checkout). Without it, file globs will match nothing.
SHA-pinned example (for enterprise users):
- uses: rishi-banerjee1/prompt-control-plane@abc123def # SHA-pinned
with: version: '5.0.0' # Required when pinning by SHA files: 'prompts/**/*.txt' threshold: 70
Notes:
pcp via npm install --prefix into $RUNNER_TEMP, then runs the binary. Falls back to prompt-lint for v4 installs.@v5 maps to npm @5 (latest 5.x). Use @v5.0.0 for exact pinning.subcommand input accepts check (default), preflight, optimize, or score. Use preflight for CI gates.comment: 'true' posts results as a PR comment (requires pull-requests: write permission).vague_objective, missing_constraints) are stable: treat as a public contract.flowchart LR
A([Your prompt]) --> B[Host Claude] B -->|calls optimize_prompt| C{PCP Engine}
subgraph C[PCP Engine: Zero LLM Calls] direction TB D[1. Tokenize & normalize] --> E[2. Detect task type] E --> F[3. Score 5 dimensions] F --> G[4. Run 14 rules] G --> H[5. Assess risk] H --> I[6. Route model] I --> J[7. Estimate cost] J --> K[8. Compile prompt] end
C -->|PreviewPack| B B --> L([User reviews & approves]) L -->|approve_prompt| B B --> M([Execute with compiled prompt])
Every prompt goes through a mandatory review cycle before it's finalized:
refine_prompt.approve_prompt hard-fails if unanswered blocking questions remain: the gate is enforced in code, not convention.The MCP is a co-pilot for the co-pilot. It does the structural work (decomposition, gap detection, template compilation, token counting) so Claude can focus on intelligence.
Zero LLM calls inside the MCP. All analysis is deterministic: regex, heuristics, and rule engines. The host Claude provides all intelligence. This means the MCP itself is instant, free, and predictable.
Works for all prompt types: code, writing, research, planning, analysis, communication, data, and more. The pipeline auto-detects 13 task types and adapts scoring, constraints, templates, and model recommendations accordingly. A Slack post gets writing-optimized constraints; a refactoring task gets code safety guardrails. Intent-first detection classifies prompts *about* technical topics that request non-code work correctly: the opening verb phrase takes priority over technical keywords in the body.
Real results from the deterministic pipeline. PCP scores the input prompt quality, not the compiled output: the compiled prompt gets a structural checklist instead:
| Prompt | Type | Score | Confidence | Model | Blocked? |
|---|---|---|---|---|---|
"make the code better" | other | 50 | high | claude-sonnet-5 | N/A |
"fix the login bug" | debug | 53 | medium | claude-sonnet-5 | 3 BQs |
| Multi-task (4 tasks in 1 prompt) | refactor | 53 | medium | claude-sonnet-5 | 3 BQs |
| Well-specified refactor (auth middleware) | refactor | 68 | medium | claude-sonnet-5 | N/A |
| Precise code change (retry logic) | code_change | 63 | medium | claude-sonnet-5 | N/A |
| Create REST API server | create | 58 | medium | claude-sonnet-5 | 1 BQ |
| LinkedIn post (technical topic) | writing | 61 | medium | claude-sonnet-5 | N/A |
| Blog post (GraphQL migration) | writing | 65 | medium | claude-sonnet-5 | N/A |
| Email to engineering team | writing | 61 | medium | claude-sonnet-5 | N/A |
| Slack announcement | writing | 61 | medium | claude-sonnet-5 | N/A |
| Technical summary (RFC → guide) | writing | 65 | medium | claude-sonnet-5 | N/A |
| Research (Redis and Memcached) | research | 58 | medium | claude-sonnet-5 | N/A |
| Framework comparison (React and Vue) | research | 58 | medium | claude-sonnet-5 | N/A |
| Migration roadmap (REST → GraphQL) | planning | 58 | medium | claude-sonnet-5 | N/A |
| Data transformation (CSV grouping) | data | 58 | medium | claude-haiku-4-5 | N/A |
Score = input prompt quality (0-100). Confidence = how much improvement to expect (high = prompt is weak, lots of room; low = prompt is already strong). Compiled output gets a structural checklist (e.g. 7/9 elements present), not an inflated numeric score. Vague prompts get blocked with targeted questions. Well-specified prompts get compiled with safety constraints, workflow steps, and model routing: all deterministically, with zero LLM calls.
Vague Prompt Detection
Raw: "make the code better"
Quality: 50/100 Confidence: high State: ANALYZING
Blocking Questions: ⛔ Which file(s) or module(s) should this change apply to?
Changes Made: ✓ Added: role definition ✓ Added: success criteria ✓ Added: safety constraints ✓ Added: workflow (4 steps) ✓ Added: uncertainty policy
*Catches missing targets, vague objectives, and scope explosions before Claude starts working*
Well-Specified Prompt Compilation
Raw: "Refactor auth middleware in
src/auth/middleware.ts..."
Quality: 68/100 Confidence: medium State: COMPILED Risk: high (auth domain) Model: claude-opus-5 (recommended)
Detected Inputs: 📄 src/auth/middleware.ts 📄 auth.test.ts
Extracted Constraints: 🚫 Do not touch user model or DB layer
*Detects high-risk domains, extracts file paths and constraints, recommends the right model*
Multi-Task Overload Detection
Raw: "update payment processing and
also refactor the dashboard and then fix rate limiting and finally clean up tests"
Quality: 53/100 Confidence: medium Risk: high (payment domain) Blocking: 3 questions
Assumptions: 💡 Consider splitting into separate prompts for better focus.
*Detects when one prompt tries to do too much and suggests splitting*
Context Compression
Intent: "fix updateProfile to validate
email format"
Original: ~397 tokens Compressed: ~169 tokens Saved: ~228 tokens (57%)
What Was Removed: 🗑️ Trimmed 7 import statements 🗑️ Removed 15-line block comment 🗑️ Removed test code (not relevant) 🗑️ Collapsed excessive blank lin
ตัดมาแค่ช่วงต้น อ่านต่อใน repo