skills/githire/SKILL.md
GitHire's six-step AI-native engineering method: frame the issue, sandbox, AI execute, AI review, architect decision, ship. Use when planning or executing real work with AI agents — issue framing, prompt writing, PR review gating, architect handoff — or anytime humans-frame-AI-execute-architects-verify applies. Triggers on: use githire, githire methodology, issue-first onboarding, ai-native workflow, frame this issue, prompt spec, architect review, first PR for a candidate, hire through real PRs.
npx skillsauth add realroc/skills githireInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A workflow for shipping real production work with AI agents, organized so the human stays the decision-maker even when the AI writes most of the code.
Stop assisting. Start operating.
AI coding speed already outruns human review speed. Reviewing code after it's written is too late. The unit of work shifts:
The six steps below place each role at the right point in the pipeline.
When network access is available, the live site is the source of truth:
If browsing is unavailable, references/method.md is the offline fallback. If the live site and the fallback disagree, prefer the live site and flag the drift briefly.
The issue is a contract between human and AI. Use the Prompt Spec template (below). Each missing section is an entry point for incidents.
Not a fresh container per run. Real dependencies, real data shapes, real call volumes. If your test fixtures have 3 rows and production has 30,000, the sandbox is hiding the bug.
Claude Code or Codex implements in the sandbox. The AI proposes design and code; the human reads the diff. Don't try to prescribe every line in the issue — that's micromanagement, not framing.
An independent reviewer agent with a different mandate: performance patterns, security patterns, anti-patterns. Not "rerun the tests" — a different lens. Cover what the first agent wasn't asked about.
The most expensive 30 seconds in the workflow. The architect brings context the AI lacks: production QPS, capacity curves, prior incidents, team conventions. Mandatory questions:
If you only adopt one step from this workflow, adopt this one.
Merge, deploy, write back to the issue. The issue + PR + AI-review notes + architect decision + handoff note is the durable memory of the call.
Use this as the issue body, not a bare "I want X" sentence. Each missing section maps directly to a failure mode (see "Real failure mode" below).
## Goal
What we're trying to achieve, in user-visible terms.
## Constraints
Hard limits: call frequency, data scale, latency budget, existing schema we can't break.
## Non-goals
What this change must *not* do. Concrete anti-patterns (e.g. "no SCAN/KEYS in request-path code").
## Verification
How we'll know it's right: tests, smoke probes, production metrics that should/shouldn't move.
## Architecture notes
The shape we expect: data structures, index patterns, cache strategy. Architect can pre-bless or push back here.
## Existing context
Files most likely involved, prior decisions, related issues/PRs.
A real production incident on 2026-05-14 (see case page) ran with this incoming prompt:
"国产模型判定走的是前缀匹配。我想做成 model_detail 里的 made_in_china 字段。"
It was missing:
| Section | What was missing | What broke |
|---|---|---|
| Constraints | call frequency, data scale | /api/site/config is hit every page load |
| Non-goals | "no full-table SCAN" | AI used r.scan(match='model_detail::*') |
| Architecture notes | use a maintained set, not runtime scan | AI built O(N) keyspace walk |
| Verification | production p99 must not move | only smoke tests gated the merge |
Result: AI generated functionally-correct code in 5 minutes. Production was on fire 13 hours later. 25 hours of fix-chain commits until a Redis SET replaced the SCAN.
The 150 extra words the Prompt Spec asks for would have prevented all of it.
## Goal
## Constraints
## Non-goals
## Verification
## Architecture notes
## Existing context
## Scope (in / out)
## Files likely involved
## Risks the architect should check
## Review checklist (perf / security / consistency)
## Rollout & rollback note
## What you're approving (one sentence)
## Hot path / cold path
## Data scale assumptions
## Reversibility (one-way door?)
## Decision (merge / revise / split / restart)
## What changed
## Why this path
## What was considered and rejected
## What to watch in the next 24h
## Candidate's first issue (Prompt-Spec'd)
## What signals we're reading from their PR
## Where the architect will gate
## What "good first PR" looks like for this team
Activate this skill when the user asks to:
Also activate proactively when the user shows a vague prompt and asks for code: offer to convert it to a Prompt Spec first.
development
Screen MongoDB conversation collections for script-driven abuse (prompt-injection templates, curl/empty user agents, probe-word floods, sessionless calls, multi-account IPs). Produces a two-tier triage report (confirmed abuse / suspicious) plus a multi-account IP list and a ban candidate CSV. Use when asked to find script callers, prompt-injection attempts, abnormal high-frequency users, accounts bypassing the web UI, or "who is using my AI as a cron job".
development
Audit or rewrite a prompt into a six-section issue spec (Goal / Constraints / Non-goals / Verification / Architecture notes / Existing context) before any code gets generated. Use when the user pastes a vague request and asks for implementation, or explicitly says they want to frame an issue properly. Triggers on: prompt spec, audit this prompt, check my prompt, what's missing in this prompt, frame this issue, rewrite as a prompt spec, convert to issue spec, make this an issue, issue framing.
development
Geolocate a batch of IPv4 addresses and produce a Markdown distribution table — Chinese IPs broken down by province (incl. HK/MO/TW), foreign IPs by country, with counts and percentages. Optionally exports CSV. Uses the free ip-api.com batch endpoint (no key, no signup, HTTP only, 15 batches × 100 IPs per minute). Use when the user pastes a list of IPs and asks for "IP 分布", "IP 归属地分布", "省份分布", "where are these IPs from", "geolocate these IPs", or wants an IP-region breakdown table.
development
Automate Shumei-based user violation-rate audits from MongoDB user and conversation collections, producing a CSV sorted by per-user request violation rate. Use when asked to screen users for forbidden/risky content, compute user-level violation rates, audit newly registered/free/suspicious users, or rerun a similar report with custom user filters, conversation filters, and a Shumei input-event key.