Agent skill

Dpis Runtime Route Diagnose

by Kwensiu in Kwensiu/DPIS

Project-local DPIS runtime hook diagnosis workflow. An agent skill from Kwensiu/DPIS.

GPL-3.0Auto-check passedMobile

Install Dpis Runtime Route Diagnose

skills CLI
$ npx skills add Kwensiu/DPIS --skill dpis-runtime-route-diagnose -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Kwensiu/DPIS dpis-runtime-route-diagnose --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Kwensiu/DPIS.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/agents/skills/dpis-runtime-route-diagnose .claude/skills/dpis-runtime-route-diagnose && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dpis-runtime-route-diagnose
GitHub stars
111
Token cost
~1.7k tokens
SKILL.md length
867 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
GPL-3.0

At a glance

Project-local DPIS runtime hook diagnosis workflow. An agent skill from Kwensiu/DPIS.

  • Works in 6 steps: Classify the layer that owns the… → Gather the smallest evidence set that… → Probe route execution one boundary at a… → …
  • LSPosed/Xposed logs
  • SKILL.md covers Trigger, Do Not Use, Required Reads and Workflow, plus 7 more sections
  • Calls python

What it does

Dpis Runtime Route Diagnose is an agent skill from Kwensiu/DPIS. Project-local DPIS runtime hook diagnosis workflow. Use for LSPosed/Xposed logs, app flicker or relaunch, missing DPI/viewport/font scaling, font hook chains, systemserver, ActivityThread, Resources, Display, WindowMetrics, WebView, TextView, Paint, Flutter, HyperOS, or shared runtime route changes.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Cross-platform mobile apps. It works with Flutter and Java. The repository describes itself as: 独立调节应用 DPI 与字体缩放 | Per-app DPI and font scaling. The licence is GPL-3.0.

When your agent uses it

  • LSPosed/Xposed logs
  • Missing DPI/viewport/font scaling
  • Font hook chains
  • Shared runtime route changes

Example prompts

  • “/dpis-runtime-route-diagnose”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Classify the layer that owns the suspected behavior.
  2. Gather the smallest evidence set that can prove or disprove that layer.
  3. Probe route execution one boundary at a time.
  4. Choose the narrowest fix shape that expresses the route semantics.
  5. Add or update focused tests for policy behavior.
  6. Update the relevant living route document.

What it can do on your machine

Read from SKILL.md and the folder at commit 9491f2c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dpis Runtime Route Diagnose loads about 1.7k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 867 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Kwensiu/DPIS at commit 9491f2c, republished under its GPL-3.0 licence (© Kwensiu). 867 words, ~1,717 tokens.

Download SKILL.mdSave it as .claude/skills/dpis-runtime-route-diagnose/SKILL.md (or your agent's skills folder).
name
dpis-runtime-route-diagnose
description
Project-local DPIS runtime hook diagnosis workflow. Use for LSPosed/Xposed logs, app flicker or relaunch, missing DPI/viewport/font scaling, font hook chains, system_server, ActivityThread, Resources, Display, WindowMetrics, WebView, TextView, Paint, Flutter, HyperOS, or shared runtime route changes.

DPIS Runtime Route Diagnose

This is a project-local skill bundle. It is intentionally stored in the repository instead of a global Codex skill, so new conversations can discover DPIS runtime rules through AGENTS.md without modifying user-wide skill files.

Trigger

Use this skill before diagnosing or changing behavior involving:

  • LSPosed / Xposed runtime hooks
  • app flicker, flash, relaunch, or configuration churn
  • missing DPI, viewport, smallest-width, or font scaling
  • font hook chains, route domains, or template recommendations
  • system_server, ActivityThread, Resources, Display, WindowMetrics, WebView, TextView, Paint, Flutter, or HyperOS font routes
  • shared runtime code under app/src/main/java/com/dpis/module/

Do Not Use

Do not use this skill for:

  • pure UI layout work
  • release-note wording
  • ordinary Java refactors that do not affect runtime hook behavior
  • CI failures unless the failure changes runtime route behavior

For Java / CI API compatibility questions, read docs/java-toolchain-policy.md instead.

Required Reads

Read only the documents needed for the touched route:

  • Always read AGENTS.md.
  • For font routes, read docs/font-routing.md.
  • For Modern routes, read docs/modern-runtime-resync.md.
  • For Legacy routes or shared code that may affect Legacy, read docs/legacy-runtime-resync.md.
  • For log collection, read docs/lsposed-diagnostics.md.
  • For Java / CI API compatibility questions, read docs/java-toolchain-policy.md.

Workflow

  1. Classify the layer that owns the suspected behavior.
  2. Gather the smallest evidence set that can prove or disprove that layer.
  3. Probe route execution one boundary at a time.
  4. Choose the narrowest fix shape that expresses the route semantics.
  5. Add or update focused tests for policy behavior.
  6. Update the relevant living route document.

Semantic Frame

Before editing, name the owning layer:

  • UI preference or form draft
  • recommendation template
  • planner domain
  • app-process route
  • system_server route
  • lifecycle entry
  • mutation field
  • config source
  • LSPosed scope or module loading

If two layers appear to write the same state, resolve the ownership boundary before adding another branch.

Probe Order

Probe one boundary at a time:

  1. Module entry reached.
  2. Guard did not return early.
  3. Dependency or class lookup succeeded.
  4. Hook installed.
  5. Callback fired.
  6. Target package resolved.
  7. Config source returned the expected app config.
  8. Field policy allowed the mutation.
  9. Mutation changed the runtime object.
  10. App-visible behavior changed.

hook ready proves only that installation ran. Require a callback, mutation, counter, or visible result before calling a route effective.

Diagnostic Evidence Rules

When reviewing an exported diagnostic package:

  • Separate the diagnostic session window from the Perfetto trace window. Do not generalize a short trace to the whole session.
  • Treat measuredCalls=0, calls=0 with non-zero applied/skipped, and zero latency percentiles as missing or inconsistent instrumentation, not as proof of zero overhead.
  • Treat stable_metrics, stable_configuration, and no_viewport_delta_after_resolution as policy skips. They are not failures unless the selected config still required a change.
  • Treat an empty diagnostic marker as incomplete evidence. Cross-check raw lsposed-log.txt and runtime-hotpath events before declaring a route absent.
  • A module-effects.tsv row selected but no … route effect observed is valid only when the session window also has no matching structured hot-path event. WeChat DPI mutations are route=wechat_dpi runtime events, not ProcessPerformance aggregate route names. Font aggregates plus a WeChat mutation_applied event must not be read as “WeChat DPI did nothing”.
  • Prefer the last stage=aggregate snapshot per process. Earlier snapshots are cumulative prefixes, not a second independent session.
  • Font rewrite applied details should include in=/out=. Missing pairs on textview_current_px_fallback are an evidence-format gap, not proof the route skipped. Timeline applied counts can be lower than the aggregate because kept is aggregate-only and transport may sample begin/applied/end.
  • Do not treat |incoming - earlier out| < epsilon as double-scale. A second-order candidate is an incoming px that equals a first-scale output. Independent later sizes, including another object's unscaled 28.2, must still rewrite. Same-object already-scaled Paint must not.
  • A hot-reload warning is recoverable only if later module-entry and route evidence exists after the restart/reload path. Otherwise report it as an unresolved framework or loading failure.
  • For performance claims, check thread_state and sched_slice for the target process and main thread. Distinguish Running, Runnable, and sleeping or blocked states before naming a bottleneck.
  • For exported ZIP or extracted diagnostic directories, run python tools/analyze_diagnostic_pack.py <zip-or-dir> before narrating font/DPI effectiveness. Use --self-check to verify the analyzer itself.
Show full SKILL.md (190 more words)Show less

Flicker And Relaunch Checks

For flicker or relaunch reports:

  • Check whether Activity relaunch is tied to configuration changes.
  • Look for CONFIG_FONT_SCALE, Activity relaunch, and config dispatch logs.
  • Separate viewport changes from FONT_SCALE changes.
  • For system-mode font scaling, verify FONT_SCALE writes are limited to the launch entry.
  • Treat app-specific repros as route evidence, not as immediate package-list requirements.

Fix Preference

Prefer fixes in this order:

  1. Clarify ownership and naming.
  2. Express the behavior as a planner, scheduler, entry, or field policy.
  3. Add focused unit tests for the policy.
  4. Update route documents.
  5. Add app-specific package lists only when policy cannot represent the behavior.
  6. Add independent hook routes only when existing route domains cannot safely model the behavior.

Test Expectations

For route policy changes, add or update focused tests that would fail if the semantic rule regressed. Source smoke tests are acceptable for wiring checks, but they should not be the only coverage for scheduler or planner behavior.

Output

When finishing a runtime route task, report:

  • the semantic rule changed or confirmed
  • the affected route, entry, and field
  • evidence used
  • tests or runtime checks run
  • route documents updated

© Kwensiu, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/agents/skills/dpis-runtime-route-diagnose of Kwensiu/DPIS.

Open the folder on GitHubat commit 9491f2c

Compare with similar skills

Dpis Runtime Route Diagnose next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dpis Runtime Route Diagnose compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dpis Runtime Route Diagnose this skillKwensiu/DPIS111—~1.7kAutomated safety check: PassGPL-3.0
Frb Android Emulator Preparefzyzcjy/flutter_rust_bridge5.4k—~2.1kAutomated safety check: NotesMIT
Release Pluginflutter/flutter-intellij2k—~1kAutomated safety check: PassBSD-3-Clause
Migrate Intellij Utilflutter/flutter-intellij2k—~600Automated safety check: PassBSD-3-Clause
Remove Platform Versionflutter/flutter-intellij2k—~826Automated safety check: PassBSD-3-Clause
Android Devsickn33/agentic-awesome-skills47k1 repos~536Automated safety check: PassMIT

Similar skills

  • Frb Android Emulator Prepare

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when preparing, installing, diagnosing, or explaining the host Android Emulator environment for flutterrustbridge local runtime validation, including Android SDK command-line…

    5.4k GitHub stars~2.1k tokensUpdated today
    MobileAuto-check: notes
  • Release Plugin

    flutter/flutter-intellij

    Prepare and execute a new release for the flutter-intellij plugin, including updating dependencies, compatibility bounds, changelogs, and verification.

    2k GitHub stars~1k tokensUpdated yesterday
    MobileAuto-check passed
  • Migrate Intellij Util

    flutter/flutter-intellij

    Optimize memory usage, consistency, and performance by migrating standard Java/Kotlin classes to IntelliJ's specialized com.intellij.util implementations.

    2k GitHub stars~600 tokensUpdated yesterday
    MobileAuto-check passed
  • Remove Platform Version

    flutter/flutter-intellij

    Remove support for an older IntelliJ Platform / Android Studio version from the project and clean up obsolete code, baselines, and CI configurations.

    2k GitHub stars~826 tokensUpdated yesterday
    MobileAuto-check passed
  • Android Dev

    sickn33/agentic-awesome-skills

    Production-grade Android app development guide covering native (Kotlin/Java), cross-platform (Flutter, RN, KMM), and hybrid architectures.

    47k GitHub starsUsed in 1 repo~536 tokens
    MobileAuto-check passed
  • Official

    Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures.

    40k GitHub starsUsed in 1 repo~3.5k tokens
    Productivity & AutomationAuto-check passed

More from Kwensiu/DPIS

  • Dpis Hyperos Smoke

    Kwensiu/DPIS

    Run automated DPIS HyperOS device smoke tests for package-specific dp/font emulation or replacement.

    111 GitHub stars~715 tokensUpdated yesterday
    Auto-check passed
  • Project-local DPIS hook implementation and diagnosis workflow for Xposed API routing.

    111 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Dpis Localization

    Kwensiu/DPIS

    Project-local DPIS localization workflow. An agent skill from Kwensiu/DPIS.

    111 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Dpis Release Notes

    Kwensiu/DPIS

    Rewrite DPIS release notes for ordinary users. An agent skill from Kwensiu/DPIS.

    111 GitHub stars~713 tokensUpdated yesterday
    Auto-check passed
  • Review DPIS changes before committing or opening a pull request, including scope, domain-rule compliance, tests, Android validation, SonarQube MCP checks, and Git hygiene.

    111 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Dpis Runtime Route Diagnose

What does Dpis Runtime Route Diagnose do?

Project-local DPIS runtime hook diagnosis workflow. An agent skill from Kwensiu/DPIS. Dpis Runtime Route Diagnose is an agent skill from Kwensiu/DPIS. Project-local DPIS runtime hook diagnosis workflow.

When should I use Dpis Runtime Route Diagnose?

Dpis Runtime Route Diagnose fits situations like: LSPosed/Xposed logs; missing DPI/viewport/font scaling; font hook chains; shared runtime route changes.

How do I install Dpis Runtime Route Diagnose in Claude Code?

Run `npx skills add Kwensiu/DPIS --skill dpis-runtime-route-diagnose -a claude-code`. Or copy the skill folder (docs/agents/skills/dpis-runtime-route-diagnose in Kwensiu/DPIS) into .claude/skills/dpis-runtime-route-diagnose in your project. Claude Code loads it when a task matches its description.

How do I install Dpis Runtime Route Diagnose in Codex?

Run `npx skills add Kwensiu/DPIS --skill dpis-runtime-route-diagnose -a codex`. Or copy the skill folder (docs/agents/skills/dpis-runtime-route-diagnose in Kwensiu/DPIS) into .agents/skills/dpis-runtime-route-diagnose in your project. Codex loads it when a task matches its description.

Can I use Dpis Runtime Route Diagnose in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Kwensiu/DPIS --skill dpis-runtime-route-diagnose -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dpis-runtime-route-diagnose, .gemini/skills/dpis-runtime-route-diagnose, .github/skills/dpis-runtime-route-diagnose and .opencode/skills/dpis-runtime-route-diagnose in your project.

What does Dpis Runtime Route Diagnose need to run?

Going by SKILL.md and its folder, Dpis Runtime Route Diagnose needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Dpis Runtime Route Diagnose access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dpis Runtime Route Diagnose safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dpis Runtime Route Diagnose use?

Dpis Runtime Route Diagnose is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dpis Runtime Route Diagnose use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dpis Runtime Route Diagnose?

Skills that share tags, products or a category with Dpis Runtime Route Diagnose: Frb Android Emulator Prepare (fzyzcjy/flutter_rust_bridge, 5.4k stars), Release Plugin (flutter/flutter-intellij, 2k stars), Migrate Intellij Util (flutter/flutter-intellij, 2k stars) and Remove Platform Version (flutter/flutter-intellij, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dpis Runtime Route Diagnose?

Kwensiu (a GitHub user) maintains it in Kwensiu/DPIS, which has 111 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 9, 2026.

Source: Kwensiu/DPIS on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.