Agent skill
desktop-content-resolution
Prefer real web bundles over fallback shell content in desktop host resolution
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/desktop-content-resolution
SKILL.md
Context
Hybrid desktop shells often ship a local fallback page while also supporting a repo-built Web UI bundle during development.
Pattern
- Enumerate candidate roots upward from the executable base directory.
- Search every candidate root for the preferred web bundle first.
- Only if no bundle exists anywhere should the resolver accept a bundled or source fallback page.
Why
Desktop outputs commonly copy fallback content into the app base directory. If fallback checks are interleaved with upward traversal, the copied page can mask a valid bundle that exists higher in the repo tree.
Example
- Preferred:
src\PanelNester.WebUI\dist\index.html - Fallbacks:
WebApp\index.html, thensrc\PanelNester.Desktop\WebApp\index.html
Anti-Pattern
- Checking
WebApp\index.htmlin the current output directory before finishing the search for the real bundle.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?