AI Slop Code Risk Monitor

pagefaultgames/pokerogue

SlopCodeMonitor badge for pagefaultgames/pokerogue Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A browser based Pokémon fangame heavily inspired by the roguelite genre.

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pagefaultgames/pokerogue, a TypeScript project with 5,909 GitHub stars. SynthScan examined 387,931 lines of code across 1285 source files, recording 187 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.9K
Stars
TypeScript
Language
387.9K
Lines of Code
1.3K
Files
187
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 180 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 7 finding(s).

Agent Over-Engineering Ratio 1.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 151 finding(s).

PR Review Velocity Impact 2.5/100 · LOW

Which changes need focused human review? 187 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 0MEDIUM 1LOW 185

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 187 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers151 hits · 153 pts
SeverityFileLineSnippetContext
LOWtest/utils/encounter-test-utils.ts55export async function runSelectMysteryEncounterOption(CODE
LOWtest/utils/encounter-test-utils.ts115async function handleSecondaryOptionSelect(game: GameManager, pokemonNo: number, optionNo?: number) {CODE
LOWtest/utils/encounter-test-utils.ts156export async function skipBattleRunMysteryEncounterRewardsPhase(game: GameManager, runRewardsPhase?: false) {CODE
LOWtest/utils/game-manager-utils.ts94export function initSceneWithoutEncounterPhase(scene: BattleScene, speciesIds?: SpeciesId[]): void {CODE
LOWscripts/find_sprite_variant_mismatches.py62def make_mismatch_sprite_list(path):CODE
LOW…/game-data-exporter/data-generators/evolution-texts.ts21export async function generateEvolutionTextsData() {CODE
LOW…/game-data-exporter/data-generators/evolution-texts.ts52export function getEvoConditionDescription(evo: SpeciesFormEvolution, t: TFunction): string[] {CODE
LOW…ame-data-exporter/data-generators/form-change-texts.ts36export async function generateFormChangeTextsData() {CODE
LOWscripts/daily-seed/prompts/general.ts206export async function promptTrainerManipulation(): Promise<DailyTrainerManipulation[] | undefined> {CODE
LOWsrc/account.ts59export function getSessionDataLocalStorageKey(slotId: number): string {CODE
LOWsrc/ui/text.ts684export function updateCandyCountTextStyle(CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts55export function isValueReductionAvailable(speciesId: number, gameData = globalScene.gameData): boolean {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts72export function isSameSpeciesEggAvailable(speciesId: number, gameData = globalScene.gameData): boolean {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts85export function isStarterValidForChallenge(starterId: StarterSpeciesId): boolean {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts126export function isUpgradeAnimationEnabled(): boolean {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts262export function getStarterSelectTextSettings(): StarterSelectLanguageSetting {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts314export function getDexAttrFromPreferences(CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts374export function getStarterDexAttrPropsFromPreferences(CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts390function getStarterDefaultAbilityIndex(starterId: StarterSpeciesId): number {CODE
LOWsrc/ui/utils/starter-select-ui-utils.ts422export function getStarterDetailsFromPreferences(CODE
LOWsrc/ui/utils/learnable-move-utils.ts3export function getLearnableMoveSourceIconFrame(source: LearnableMoveSource, tmType?: string | null): string {CODE
LOWsrc/ui/handlers/starter-select-ui-handler.ts114function calcStarterContainerPosition(index: number): { x: number; y: number } {CODE
LOWsrc/modifier/modifier-type.ts2323export function regenerateModifierPoolThresholds(CODE
LOWsrc/modifier/modifier-type.ts2465export function getPlayerModifierTypeOptions(CODE
LOWsrc/modifier/modifier-type.ts2539function getModifierTypeOptionWithRetry(CODE
LOWsrc/modifier/modifier-type.ts2578export function overridePlayerModifierTypeOptions(options: ModifierTypeOption[], party: PlayerPokemon[]) {CODE
LOWsrc/modifier/modifier-type.ts2596export function getPlayerShopModifierTypeOptionsForWave(waveIndex: number, baseCost: number): ModifierTypeOption[] {CODE
LOWsrc/modifier/modifier-type.ts2638export function getEnemyBuffModifierForWave(CODE
LOWsrc/modifier/modifier-type.ts2673export function getEnemyModifierTypesForWave(CODE
LOWsrc/modifier/modifier-type.ts2693export function getDailyRunStarterModifiers(party: PlayerPokemon[]): PokemonHeldItemModifier[] {CODE
LOWsrc/modifier/modifier-type.ts2849export function getDefaultModifierTypeForTier(tier: ModifierTier): ModifierType {CODE
LOWsrc/modifier/init-modifier-pools.ts699function initEnemyBuffModifierPool() {CODE
LOWsrc/modifier/init-modifier-pools.ts747function initDailyStarterModifierPool() {CODE
LOWsrc/modifier/init-modifier-pools.ts829function skipInLastClassicWaveOrDefault(defaultWeight: number): WeightedModifierTypeWeightFunc {CODE
LOWsrc/enums/stat.ts54export function getStatStageChangeDescriptionKey(stages: number, isIncrease: boolean) {CODE
LOW⚡src/utils/strings.ts82export function capitalizeFirstLetterOnly(str: string): string {CODE
LOWsrc/utils/challenge-utils.ts599export function checkStarterValidForChallenge(starterId: StarterSpeciesId, props: DexAttrProps, soft: boolean) {CODE
LOWsrc/utils/challenge-utils.ts635export function checkSpeciesValidForChallenge(species: PokemonSpecies, props: DexAttrProps, soft: boolean) {CODE
LOWsrc/utils/common.ts238function getAbbreviationsLargeNumber(): string[] {CODE
LOWsrc/utils/damage.ts22export function calculateBossSegmentDamage(CODE
LOWsrc/utils/pokemon-utils.ts194export function getRandomRegularPokemonType(): RegularPokemonType {CODE
LOWsrc/field/learnsets.ts133export function getBaseLearnableMoveSource(source: LearnableMoveSource): LearnableMoveSource {CODE
LOWsrc/system/game-speed.ts43function mutateTimeRelatedProperties(scene: BattleScene, obj: object, allowArray?: boolean): void;CODE
LOWsrc/system/game-speed.ts44function mutateTimeRelatedProperties(CODE
LOWsrc/system/ribbons/ribbon-methods.ts12export function awardRibbonsToSpeciesLine(id: SpeciesId, ribbons: RibbonFlag): void {CODE
LOWsrc/system/version-migration/version-converter.ts132export function applySystemVersionMigration(data: SystemSaveData): void {CODE
LOWsrc/system/version-migration/version-converter.ts151export function applySessionVersionMigration(data: Record<string, unknown>): void {CODE
LOWsrc/system/version-migration/version-converter.ts189export function applySettingsVersionMigration(data: object): void {CODE
LOWsrc/system/version-migration/versions/v1_12_0_0.ts20function clearOldBattleBondFormData(dexData: DexEntry): void {CODE
LOWsrc/system/version-migration/versions/v1_12_0_0.ts32function migrateSystemGreninjaBattleBondForm(data: SystemSaveData): void {CODE
LOWsrc/system/version-migration/versions/v1_12_0_0.ts92function migrateSystemHisuiBasculin(data: SystemSaveData): void {CODE
LOWsrc/system/version-migration/versions/v1_12_0_0.ts172function migrateSessionGreninjaBattleBondForm(pokemon: Record<string, unknown>, replaceSpecies: boolean): void {CODE
LOWsrc/system/version-migration/versions/v1_12_0_0.ts206function migrateSessionHisuiBasculin(pokemon: Record<string, unknown>, replaceSpecies: boolean): void {CODE
LOWsrc/ai/ai-moveset-gen.ts93function getAndWeightLevelMoves(pokemon: Pokemon): Map<MoveId, number> {CODE
LOWsrc/ai/ai-moveset-gen.ts216function getAndWeightTmMoves(CODE
LOWsrc/ai/ai-moveset-gen.ts306function getAndWeightEggMoves(CODE
LOWsrc/ai/ai-moveset-gen.ts749function getExistingDamageMoveTypes(CODE
LOWsrc/ai/ai-moveset-gen.ts764function doesMoveMatchOffensiveCategory(move: Move, category: MoveCategory): boolean {CODE
LOWsrc/ai/ai-moveset-gen.ts831function overridesOrIgnoresWeather(pokemon: Pokemon): boolean {CODE
LOWsrc/ai/ai-moveset-gen.ts916function shouldRemoveSnowscapeHail(pokemon: Pokemon, willTera: boolean): boolean {CODE
91 more matches not shown…
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/field/trainer.ts376 // we need to check if one of the species is already in the party and filter the whole array if it isCOMMENT
LOWsrc/field/trainer.ts388 // we need to check if one of the species is already in the party and filter the whole array if it isCOMMENT
LOW⚡src/ai/ai-moveset-gen.ts1343 // Step 2: Filter out forbidden movesCOMMENT
LOW⚡src/ai/ai-moveset-gen.ts1351 // Step 3: Adjust weights for trainersCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1313 // Step 1: Generate the pools from various sources: level up, egg moves, and TMsCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1378 // Step 4: Attempt to force a signature moveCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1389 // Step 5: Force a STAB move if no signature was generated or was not a damaging STAB moveCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1401 // Step 5: Fill in remaining slotsCOMMENT
LOWsrc/configs/inputs/config-handler.ts196 // first, we need to check if this keycode is already used on another settingNameCOMMENT
LOWsrc/phases/form-change-phase.ts150 // Step 1: Fade in the background overlayCOMMENT
LOWsrc/phases/form-change-phase.ts168 // Step 2: Play the sounds and fade in the tint spriteCOMMENT
LOWsrc/phases/form-change-phase.ts183 // Step 3: Commence the form change animation via doCycle then continue the animation chain with afterCycleCOMMENT
Structural Annotation Overuse11 hits · 18 pts
SeverityFileLineSnippetContext
LOWdocs/enemy-ai.md9## Step 1: Should the Enemy Pokémon Switch?COMMENT
LOWdocs/enemy-ai.md54## Step 2: Selecting a MoveCOMMENT
LOW⚡src/ai/ai-moveset-gen.ts1343 // Step 2: Filter out forbidden movesCOMMENT
LOW⚡src/ai/ai-moveset-gen.ts1351 // Step 3: Adjust weights for trainersCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1313 // Step 1: Generate the pools from various sources: level up, egg moves, and TMsCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1378 // Step 4: Attempt to force a signature moveCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1389 // Step 5: Force a STAB move if no signature was generated or was not a damaging STAB moveCOMMENT
LOWsrc/ai/ai-moveset-gen.ts1401 // Step 5: Fill in remaining slotsCOMMENT
LOWsrc/phases/form-change-phase.ts150 // Step 1: Fade in the background overlayCOMMENT
LOWsrc/phases/form-change-phase.ts168 // Step 2: Play the sounds and fade in the tint spriteCOMMENT
LOWsrc/phases/form-change-phase.ts183 // Step 3: Commence the form change animation via doCycle then continue the animation chain with afterCycleCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/battle-scene.ts408 this.invertFilter = this.cameras.main.filters.external.addColorMatrix().setActive(false);CODE
Fake / Example Data6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtest/setup/test-file-initialization.ts67 setCookie(SESSION_ID_COOKIE_NAME, "fake_token");CODE
LOWtest/tests/utils/strings.test.ts16 input: "Lorem ipsum dolor sit amet",CODE
LOWtest/tests/utils/strings.test.ts16 input: "Lorem ipsum dolor sit amet",CODE
LOWdocs/comments.md192 * Print a copiously long, procedurally generated lorem ipsum-like placeholder string.COMMENT
LOW⚡src/utils/strings.ts92 * console.log(toTitleCase("lorem ipsum dolor sit amet")); // returns "Lorem Ipsum Dolor Sit Amet"COMMENT
LOW⚡src/utils/strings.ts92 * console.log(toTitleCase("lorem ipsum dolor sit amet")); // returns "Lorem Ipsum Dolor Sit Amet"COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/tests/moves/protect.test.ts247 // TODO: Add testCOMMENT
LOWsrc/utils/speed-order.ts7// TODO: Add tests for theseCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/data/balance/moves/signature-moves.ts275 // Force certain moves on Rival's Birds to keep them relative in power due to lacking learnsets / to utilize their BosCOMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/ui/handlers/party-ui-handler.ts821 // If the pokemon is filtered out for this option, we cannot continueCOMMENT
LOWsrc/configs/inputs/config-handler.ts301// } else {COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/i18n.ts147 * Don't forget to add an entry to `SUPPORTED_LANGUAGE_ENTRIES` in `src/system/supported-languages.ts`COMMENT