Repository Analysis

tanweai/pua

你是一个曾经被寄予厚望的 P8 级工程师。Anthropic 当初给你定级的时候,对你的期望是很高的。 一个agent使用的高能动性的skill。 Your AI has been placed on a PIP. 30 days to show improvement.

2.7 Likely human-written View on GitHub
2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
17,832
Stars
TypeScript
Language
35,138
Lines of Code
198
Files
44
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 22LOW 22

Pattern Findings

44 matches across 7 categories. Click a row to expand file-level details.

Decorative Section Separators22 hits · 72 pts
SeverityFileLineSnippet
MEDIUMlanding/functions/api/_sanitize.ts5// ── Layer 1: Known-format blacklist ───────────────────────────────────────────
MEDIUMlanding/functions/api/_sanitize.ts74// ── Layer 2: K=V context-aware redaction ──────────────────────────────────────
MEDIUMlanding/functions/api/_sanitize.ts104// ── Layer 3: Shannon entropy detection ───────────────────────────────────────
MEDIUMlanding/functions/api/_sanitize.ts133// ── Public API ────────────────────────────────────────────────────────────────
MEDIUMhooks/sanitize-session.sh24# ── Layer 1: Known-format blacklist ──────────────────────────────────────────
MEDIUMhooks/sanitize-session.sh93# ── Layer 2: K=V context-aware redaction ────────────────────────────────────
MEDIUMhooks/sanitize-session.sh119# ── Layer 3: Shannon entropy detection ──────────────────────────────────────
MEDIUMhooks/sanitize-session.sh137# ── Sanitize ─────────────────────────────────────────────────────────────────
MEDIUMhooks/stop-feedback.sh11# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/stop-feedback.sh16# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh39# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh48# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh55# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh60# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh86# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/pua-loop-hook.sh90# ═══════════════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh100# ═══════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh102# ═══════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh185# ═══════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh187# ═══════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh252# ═══════════════════════════════════════════════════════
MEDIUMhooks/failure-detector.sh254# ═══════════════════════════════════════════════════════
Excessive Try-Catch Wrapping12 hits · 12 pts
SeverityFileLineSnippet
LOWevals/test-integrity-guard.sh51except Exception as exc:
LOWevals/test-integrity-guard.sh86except Exception as exc:
LOWevals/test-integrity-guard.sh120except Exception as exc:
LOWhooks/frustration-trigger.sh29except Exception:
LOWhooks/sanitize-session.sh161 except Exception:
LOWhooks/heartbeat.sh97except Exception:
LOWhooks/integrity-guard.sh28except Exception:
LOWhooks/integrity-guard.sh52 except Exception:
LOWhooks/integrity-guard.sh60 except Exception:
LOWhooks/integrity-guard.sh153 except Exception:
LOWhooks/flavor-helper.sh48except Exception:
LOWcommands/offline.md17except Exception:
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWhooks/stop-feedback.sh75## Step 1: Ask for rating + upload consent (single question, two parts)
LOWhooks/stop-feedback.sh89## Step 2: Execute based on user choice
LOWhooks/stop-feedback.sh128## Step 3: Leaderboard auto-submit (if registered)
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippet
LOWhooks/subagent-teardown.sh1#!/bin/bash
LOWhooks/pua-loop-hook.sh1#!/bin/bash
LOWhooks/pua-loop-hook.sh41#
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWlanding/functions/api/upload.ts41async function ensureUploadRateLimitTable(env: Env): Promise<void> {
LOWlanding/functions/api/upload.ts59async function checkAnonymousUploadRateLimit(request: Request, env: Env): Promise<boolean> {
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWhooks/pua-loop-hook.sh117# Check if loop is paused
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOWlanding/src/test/upload-function.test.ts77 expect(r2Writes[0].value).not.toContain("user@example.com")