agentleFS
KaratussKaratuss/bstack/skills/metrics/SKILL.md

metrics

Skill0 starsChanged 7 months agoMITView on GitHub

정량 예측/측정 체크리스트 — QPS, row 수, join fan-out, p99 목표. 설계·리뷰 pre-condition.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use design, debug and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

The file

Files
SKILL.md

/metrics — 정량 지표 스킬

"감이 아니라 숫자로." 설계·리뷰 전 이 체크리스트가 비면 진행 금지.

When to use

  • 새 엔드포인트/기능 설계 전
  • /architect · /persistence · /perf 진입 시 pre-condition
  • 부하 예측, 쿼리 튜닝 우선순위 결정
  • SLO/SLA 수치 명시

How

필수 예측 6항목

항목질문단위
QPS현재 / 3개월 후 / 1년 후req/s
Row 수엔드포인트·쿼리별 반환 rowrows
Join fan-outN × M 예상 결과 크기rows
p99 latencyread / write 분리 목표ms
SLA가용성, 에러율 임계%, %
캐시 적중률목표치 + 측정 방법%

측정 방법 (실측 필요 시)

// Micrometer — 서비스 메서드 타이밍
@Timed("order.create")
public Order create(...) { ... }

// HikariCP wait + active
HikariDataSource ds = ...;
ds.getHikariPoolMXBean().getThreadsAwaitingConnection();

쿼리 row/fan-out

-- EXPLAIN ANALYZE 필수 (PostgreSQL)
EXPLAIN (ANALYZE, BUFFERS) SELECT ...;

-- MySQL
EXPLAIN FORMAT=JSON SELECT ...;

확인 포인트: rows 컬럼, nested loop 반복 횟수, index usage.

"모르겠다"의 처리

  • 모르면 결론이 "모름" 자체. 진행 전에 실측 또는 합리적 추정치 + 출처를 남긴다.
  • 추정은 근거와 함께: "기존 유사 엔드포인트 X의 p99가 120ms 이므로 150ms 목표".

Decision tree

설계 요청 수신
├── 6항목 전부 예측 있음 → /architect 로 진행
├── 일부 누락
│   ├── 실측 가능 → micrometer/EXPLAIN 으로 즉시 측정
│   └── 실측 불가 (신규 기능) → 근거 있는 추정치 기록
└── 전부 누락 → 설계 중단, 예측부터

References

  • docs/STYLE_GUIDE.md#정량-지표-요구
  • /perf — 측정 후 최적화
  • /persistence — 쿼리 row/fan-out 실측
  • /observability — Micrometer 설정

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.