Token导航 LogoToken导航

Agent Skill · 研究检索

afrexai-claude-code-production(afrexai Claude 代码 production)

afrexai-claude-code-production 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

afrexai-claude-code-production 是研究检索类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为操作浏览器;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 59,221。

总安装 392周安装 16下载 125核验 2026-05-01
研究检索操作浏览器unknown未标认证来源可访问许可证需确认审计未展示Local Agent

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:afrexai-claude-code-production(afrexai Claude 代码 production)
来源仓库:https://skills.volces.com
仓库路径:afrexai-claude-code-production
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

afrexai-claude-code-production 用于查找、检索和筛选相关信息,适合在 Local Agent 中根据关键词或生产环境线索快速定位候选结果时使用。它可能专注于 Claude 代码在生产环境中的应用与研究,支持开发与运维协同。

目前安装方式尚未明确,建议通过 skills.volces.com 查看部署说明。使用前应确认其对生产系统的影响与监控机制。建议结合具体部署场景验证其稳定性与回滚能力。

来源仓库内路径:afrexai-claude-code-production

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 afrexai-claude-code-production。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

afrexai-claude-code-production 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 afrexai-claude-code-production。

afrexai-claude-code-production 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

afrexai-claude-code-production 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

afrexai-claude-code-production 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

afrexai-claude-code-production 用的人多吗?

公开数据是累计安装 392 次,近一周安装 16 次,下载 125 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

afrexai-claude-code-production 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
afrexai-claude-code-production

afrexai Claude 代码 production · 本页

392—操作浏览器未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Claude Code Production Engineering

The complete methodology for shipping production code with Claude Code at 10X speed. Not installation scripts — actual patterns, workflows, and techniques that compound your output.


Quick Health Check (run mentally before every session)

SignalHealthyFix
CLAUDE.md exists at project root✅Create one (see §1)
.claueignore configured✅Add noise directories
Session context under 60%✅/compact or start fresh
Clear task scope before prompting✅Write task brief first
Tests exist for target code✅Write tests first (§7)
Git clean before big changes✅Commit or stash
Sub-agents for parallel work✅Use /new or Task tool
Verifying output, not trusting blindly✅Always review diffs

Score: /8. Below 6 = slow, buggy sessions. Fix before coding.


1. Project Setup — CLAUDE.md Architecture

CLAUDE.md is your project's brain. Claude reads it at session start. A good one saves thousands of tokens per session.

Template

# Project: [name]

## Tech Stack
- Language: TypeScript (strict mode)
- Framework: Next.js 15 App Router
- Database: PostgreSQL via Drizzle ORM
- Testing: Vitest + Playwright
- Styling: Tailwind CSS v4

## Architecture Rules
- Max 50 lines per function, 300 lines per file
- One responsibility per file
- All exports typed — no `any`
- Errors as values (Result type), not thrown exceptions
- Database: migrations via `drizzle-kit generate` then `drizzle-kit push`

## File Structure
src/
  app/         → Next.js routes (thin — call services)
  lib/         → Business logic (pure functions)
  db/          → Schema, migrations, queries
  components/  → UI (server components default, 'use client' only when needed)
  types/       → Shared type definitions

## Commands
- `pnpm dev` — start dev server
- `pnpm test` — run vitest
- `pnpm test:e2e` — run playwright
- `pnpm lint` — eslint + tsc --noEmit
- `pnpm db:generate` — generate migration
- `pnpm db:push` — apply migration

## Conventions
- Imports: absolute from `@/` (mapped to `src/`)
- Naming: camelCase functions, PascalCase components/types, SCREAMING_SNAKE constants
- Commits: conventional commits (feat:, fix:, refactor:, test:, docs:)
- PRs: always create branch, never commit to main directly

CLAUDE.md Rules

  1. Be specific — "TypeScript strict" not "use types." Stack versions, not just names.
  2. Include commands — Claude needs to know how to run things. Exact commands, not descriptions.
  3. Architecture decisions — document WHY, not just what. "Errors as values because we use Result type" tells Claude the pattern.
  4. Keep it under 200 lines — CLAUDE.md is read every session. Bloat wastes tokens.
  5. Update when patterns change — stale CLAUDE.md causes Claude to fight your codebase.
  6. Nested CLAUDE.md — subdirectories can have their own. Claude merges them. Use for monorepo packages.

.claueignore

node_modules/
.next/
dist/
coverage/
*.lock
.git/
*.min.js
*.map
public/assets/

Rule: if Claude doesn't need to read it, ignore it. Large lock files and build artifacts waste context.


2. Prompting Patterns — The 5 That Matter

Pattern 1: Task Brief (use for any non-trivial work)

Task: Add user authentication with magic links
Context: Using Resend for email, no password system exists yet
Constraints:
- Server actions only (no API routes)
- Session via httpOnly cookies
- Token expires in 15 minutes
Acceptance: User enters email → receives link → clicks → logged in → cookie set
Start with: the database schema for sessions and tokens

Why it works: scope + constraints + acceptance criteria + starting point. Claude doesn't wander.

Pattern 2: Show, Don't Tell

Bad: "Make the API more robust" Good: "Add input validation to POST /api/users — validate email format, name 1-100 chars, reject extra fields. Return 422 with field-level errors matching this shape: {errors: {field: string, message: string}[]}"

Rule: if you can't describe the exact output shape, you don't know what you want yet. Think first.

Pattern 3: Incremental Refinement

Step 1: "Create the database schema for a todo app with projects and tasks"
[review output]
Step 2: "Now add the CRUD service layer for tasks — pure functions, no framework imports"
[review output]
Step 3: "Now the API routes that call those services — input validation with zod"

Why: Claude produces better code in focused steps than in one massive prompt. Each step builds verified context.

Pattern 4: Fix With Evidence

Bad: "It's broken" Good: "Running pnpm test gives this error:

TypeError: Cannot read properties of undefined (reading 'id')
  at getUserById (src/lib/users.ts:23:15)

The function expects a User object but receives undefined when the database query returns no rows. Add a null check and return a Result type."

Rule: paste the actual error. Claude is excellent at fixing bugs when it can see the stack trace.

Pattern 5: Architecture Discussion

I'm deciding between these approaches for real-time updates:
A) Server-Sent Events from Next.js API routes
B) WebSocket via separate service
C) Polling every 5 seconds

Context: 500 concurrent users, updates every 30 seconds on average, deployed on Vercel.

What are the tradeoffs? Recommend one with reasoning.

Use this for decisions, not implementation. Get the answer, THEN switch to Task Brief for building.


3. Context Management — The #1 Productivity Lever

Context Is Milk — It Spoils

Context %Action
0-30%Fresh. Do complex work here.
30-60%Good. Continue current task.
60-80%Getting stale. Finish current unit, then compact.
80%+Dangerous. /compact immediately or start new session.

When to Start Fresh (/new)

  • Switching to unrelated task
  • Context above 70%
  • Claude starts repeating itself or making mistakes it didn't make earlier
  • After shipping a feature (clean slate for next one)

When to Compact (/compact)

  • Mid-task but context bloating from exploration
  • After a debugging session (lots of error output consumed context)
  • Before a complex implementation step

Context-Efficient Habits

  1. Don't paste entire files — reference by path. Claude can read them.
  2. Don't re-explain — if it's in CLAUDE.md, don't repeat it in prompts.
  3. Use specific file paths — "Look at src/lib/auth.ts line 45" not "look at the auth code."
  4. Close tangents — if Claude goes down a rabbit hole, redirect immediately. Don't let bad output consume context.
  5. One concern per message — "Fix the auth bug AND refactor the database layer AND add tests" = context explosion. Sequential > parallel in a single session.

4. Sub-Agent Orchestration — Parallel Productivity

When to Use Sub-Agents

ScenarioPattern
Independent featuresSpawn sub-agent per feature
Tests + implementationOne agent writes tests, main writes code
Research + buildSub-agent researches API docs, main builds
Refactor + maintainSub-agent refactors module A, main works on B
Code reviewSub-agent reviews your PR with fresh eyes

Task Tool Pattern (Claude Code native)

Use the Task tool to:
1. Research the Stripe API for subscription billing
2. Return: webhook event types we need, API calls for create/update/cancel, error codes to handle

Task tool spawns a sub-agent with its own context. Results come back summarized. Perfect for research that would bloat your main context.

Handoff Documents

When a sub-agent finishes complex work, have it write a HANDOFF.md:

## What Was Done
- Implemented Stripe webhook handler at src/app/api/webhooks/stripe/route.ts
- Added 4 event handlers: checkout.session.completed, invoice.paid, invoice.payment_failed, customer.subscription.deleted

## Key Decisions
- Used Stripe SDK v14 (not raw HTTP) for type safety
- Webhook signature verification via stripe.webhooks.constructEvent()
- Idempotency: check processed_events table before handling

## What's Next
- Wire up subscription status updates to user table
- Add retry logic for failed database writes
- E2E test with Stripe CLI: `stripe trigger checkout.session.completed`

## Gotchas
- Must use raw body (not parsed JSON) for signature verification
- Next.js App Router: export const runtime = 'nodejs' (not edge)

5. Debugging Workflow — Systematic, Not Random

The DEBUG Protocol

Describe the symptom (what you see vs. what you expect) Error output (paste full stack trace, not summary) Bisect (when did it last work? what changed?) Unit isolate (can you reproduce in a test?) Generate hypothesis (ask Claude for 3 possible causes, ranked)

Effective Bug Prompts

Bug: Users see stale data after updating their profile.

Expected: After PUT /api/profile, the profile page shows updated data.
Actual: Old data persists until hard refresh (Cmd+Shift+R).

Stack:
- Next.js 15 App Router
- Server component fetches user data
- Client component with form calls server action
- Server action calls db.update()

Hypothesis: Next.js is caching the server component fetch. Need to revalidate.

Can you confirm and show me the fix?

When Claude Gets Stuck

  1. Add constraints — "The fix must not change the API contract" narrows the search space.
  2. Share what you've tried — "I already tried revalidatePath('/profile') and it didn't work because..."
  3. Ask for alternatives — "Give me 3 different approaches to solve this, with tradeoffs."
  4. Fresh session — sometimes the context is poisoned. Start clean with just the bug description.

6. Refactoring Patterns — Safe Large-Scale Changes

The Refactoring Safety Net

Before any refactoring session:

Before we start refactoring:
1. Run the test suite and confirm it passes: `pnpm test`
2. Commit current state: `git add -A && git commit -m "chore: pre-refactor checkpoint"`
3. Create a branch: `git checkout -b refactor/[description]`

Safe Refactoring Prompts

Extract function:

Extract the email validation logic from src/lib/users.ts (lines 34-67) into a separate
function `validateEmail` in src/lib/validation.ts. Update all imports. Run tests after.

Rename across codebase:

Rename the `getUserData` function to `fetchUserProfile` across the entire codebase.
This includes: function definition, all call sites, all imports, all test references.
Run `pnpm test` and `pnpm lint` after to verify nothing broke.

Split large file:

src/lib/api.ts is 800 lines. Split it into:
- src/lib/api/users.ts (user-related functions)
- src/lib/api/projects.ts (project-related functions)
- src/lib/api/shared.ts (shared types and helpers)
- src/lib/api/index.ts (re-exports for backward compatibility)

Preserve all existing exports from the index file so no external imports break.
Run tests after each file move.

Multi-File Refactoring Rules

  1. One type of change at a time — don't rename AND restructure AND optimize simultaneously.
  2. Run tests after each step — catch breaks early, not after 20 files changed.
  3. Preserve exports — use index.ts re-exports so consumers don't break.
  4. Commit incrementally — one commit per logical change, not one giant commit.

7. Test-Driven Development With Claude Code

The TDD Loop

Step 1: "Write a failing test for: creating a user with valid email stores them in the database"
Step 2: [verify test fails for the right reason]
Step 3: "Now write the minimum code to make this test pass"
Step 4: [verify test passes]
Step 5: "Refactor the implementation — the test must still pass"

Why TDD Works Especially Well With Claude

  • Tests are acceptance criteria — Claude knows exactly what "done" means.
  • Immediate verification — no ambiguity about whether the code works.
  • Prevents gold-plating — "minimum code to pass" stops Claude from over-engineering.
  • Regression safety — future changes can't silently break working features.

Test-First Prompts

Write tests for a `calculateShipping` function that:
- Free shipping for orders over $100
- $5.99 flat rate for orders $50-$100
- $9.99 flat rate for orders under $50
- International orders: add $15 surcharge
- Express: 2x the base rate
- Edge cases: $0 order, negative amount (throw), exactly $50, exactly $100

Use vitest. Don't implement the function yet — just the tests.

Then: "Now implement calculateShipping to pass all tests."


8. Git Workflow With Claude Code

Pre-Work Checklist

git status          # Clean working tree?
git pull            # Up to date?
git checkout -b feat/[description]   # New branch

Commit Strategy

ScopeCommit Pattern
Single function addedfeat: add calculateShipping function
Bug fixedfix: handle null user in profile fetch
Tests addedtest: add shipping calculation edge cases
Refactor (no behavior change)refactor: extract validation into shared module
Multiple related changesCommit each logical unit separately
Large featureMultiple commits on feature branch, squash on merge

Claude Code Git Prompts

# After completing work:
"Commit the changes with an appropriate conventional commit message.
Group related files into logical commits if there are multiple concerns."

# For PR creation:
"Create a PR description for these changes. Include:
- What changed and why
- How to test it
- Any migration steps needed
- Screenshots if UI changed"

9. Code Review Mode — Claude as Reviewer

Review Prompt Template

Review this code for:
1. Correctness — does it do what it claims?
2. Security — any injection, auth bypass, data leak risks?
3. Performance — N+1 queries, unnecessary re-renders, missing indexes?
4. Maintainability — clear naming, reasonable complexity, documented edge cases?
5. Testing — are the tests sufficient? Any missing cases?

Be specific. For each issue, cite the file:line and suggest a fix.
Skip style nits unless they affect readability.

Self-Review Before PR

I'm about to open a PR. Review all changed files (`git diff main`) for:
- Any hardcoded secrets or credentials
- TODO/FIXME/HACK comments that should be resolved
- Console.logs that should be removed
- Missing error handling
- Type assertions (as any) that should be proper types
- Missing tests for new public functions

10. Production Shipping Checklist

Before deploying any Claude-generated code:

P0 — Must Do

  • All tests pass (pnpm test && pnpm test:e2e)
  • Linting clean (pnpm lint)
  • Type checking clean (tsc --noEmit)
  • No hardcoded secrets in code (grep for API keys, tokens, passwords)
  • Error handling exists for all external calls (DB, API, file I/O)
  • Input validation on all user-facing endpoints
  • Database migrations reviewed (no data loss, backward compatible)

P1 — Should Do

  • Performance: no N+1 queries, no unbounded lists, pagination exists
  • Logging: structured logs at appropriate levels (not console.log)
  • Auth: all new endpoints have proper authorization checks
  • Rate limiting on public endpoints
  • Rollback plan documented (how to revert if broken)

P2 — Nice to Have

  • Load test with expected traffic
  • Monitoring alerts for new endpoints
  • Documentation updated (API docs, README, CHANGELOG)
  • Accessibility checked (if UI changes)

11. Anti-Patterns — What Kills Productivity

Anti-PatternWhy It's BadFix
"Build me a full app" in one promptContext explosion, mediocre everythingBreak into 5-10 focused tasks
Accepting code without reading itBugs compound, technical debt growsReview every diff. Question anything unclear.
Re-prompting the same thing hoping for different resultsWastes tokens and contextChange your prompt. Add constraints. Try a different approach.
Ignoring test failures"It mostly works" → production incidentsFix tests immediately. Green before moving on.
Never using /compactContext degrades, Claude gets confusedCompact every 30-45 minutes of active work
Pasting entire codebasesContext full of noiseReference files by path. Let Claude read what it needs.
Using Claude for tasks you should think throughOutsourcing architecture decisions to AIDiscuss with Claude, but YOU decide.
Not committing between tasksCan't revert, can't bisectCommit after every working state
Prompting in vague language"Make it better" → random changesSpecific inputs, specific outputs, specific constraints
Fighting Claude's suggestionsIf Claude keeps suggesting something different, maybe it's rightConsider the suggestion. Explain why your way is better if you disagree.

12. Speed Multipliers — Advanced Techniques

Slash Commands Reference

CommandWhen to Use
/newNew task, fresh context
/compactContext getting heavy, mid-task
/clearNuclear option — wipe everything
/costCheck token spend this session
/modelSwitch models (Sonnet for speed, Opus for complexity)
/vimEnter vim mode for file editing

Model Selection Strategy

Task TypeBest ModelWhy
Simple bug fixSonnetFast, cheap, sufficient
New feature implementationSonnetGood balance of speed + quality
Complex architectureOpusDeeper reasoning, better tradeoff analysis
Code reviewOpusCatches subtle issues
RefactoringSonnetMechanical changes, speed matters
Debugging race conditionsOpusNeeds to reason about state

Keyboard Shortcuts

  • Esc → interrupt Claude (stop generation if going wrong direction)
  • Up arrow → edit last prompt (fix typo without re-typing)
  • Tab → accept file edit suggestion

Session Stacking

For maximum throughput on a large feature:

  1. Terminal 1: main implementation (Claude Code)
  2. Terminal 2: tests for what Terminal 1 builds (Claude Code with /new)
  3. Terminal 3: manual testing / running the app

13. Workflow Templates

New Feature Workflow

1. "Create branch feat/[name]"
2. "Write failing tests for [feature spec]"
3. "Implement minimum code to pass tests"
4. "Refactor — tests must stay green"
5. "Run full test suite + lint + typecheck"
6. "Commit with conventional commit message"
7. "Self-review: check diff for security, performance, missing edge cases"
8. "Create PR with description"

Bug Fix Workflow

1. "Create branch fix/[description]"
2. "Write a test that reproduces this bug: [paste error]"
3. "Fix the bug — test must pass"
4. "Run full test suite to check for regressions"
5. "Commit: fix: [description of what was wrong]"

Refactoring Workflow

1. "Create branch refactor/[description]"
2. "Run tests — confirm all green"
3. "Commit pre-refactor state"
4. "[Specific refactoring instruction]"
5. "Run tests — must still be green"
6. "Commit this step"
7. [Repeat 4-6 for each refactoring step]

Spike / Research Workflow

1. "Use Task tool to research [topic]. Return: key findings, API surface, gotchas, recommended approach."
2. [Read Task output]
3. "Based on the research, build a minimal proof of concept in /tmp/spike-[name]/"
4. [Evaluate POC]
5. "Spike looks good. Now implement properly in the main codebase."

14. Measuring Your Productivity

Track these weekly:

MetricTargetHow to Measure
Features shipped3-5/weekGit commits tagged feat:
Bugs introduced<1/weekPost-deploy incidents
Test coverage trend↑ or stableCoverage reports
Token cost / featureDecreasing/cost per session
Time to first working code<30 minStopwatch from task start
Context compacts per session1-2Count your /compact usage

Natural Language Commands

Say ThisDoes This
"Set up my project for Claude Code"Creates CLAUDE.md +.claueignore from your stack
"Review this code"Runs 5-dimension review on changed files
"Help me debug [error]"Walks through DEBUG protocol
"Refactor [file/module]"Safe refactoring with test verification
"Write tests for [function]"TDD-style test generation
"Ship this feature"Runs production checklist
"Start a new task"Clean context + branch setup
"How's my productivity?"Reviews git log and suggests improvements
"Optimize my CLAUDE.md"Reviews and improves your project config
"What model should I use for [task]?"Model selection recommendation
"Help me with my PR"PR description + self-review
"Estimate this task"Breaks down into steps with time estimates

*Built by AfrexAI — AI-native business tools that ship.*

平台分布

Local Agent

87.82%
按下载量换算110

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills