Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

App页面资源预加载算法设计

ASecurity

设计并实现一个App页面资源预加载算法,根据用户行为、页面访问次数及页面间的可达性(图距离)预测下一个页面及资源,不使用机器学习,使用Kotlin编写。

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
toolskotlin

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'app页面资源预加载算法设计' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of App页面资源预加载算法设计?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for App页面资源预加载算法设计
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-app/badge)](https://www.skillsdirectory.com/skills/david-li0406-app)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "56150e33-530c-4d8d-8d15-a6728293fa81"
name: "App页面资源预加载算法设计"
description: "设计并实现一个App页面资源预加载算法,根据用户行为、页面访问次数及页面间的可达性(图距离)预测下一个页面及资源,不使用机器学习,使用Kotlin编写。"
version: "0.1.0"
tags:
  - "算法设计"
  - "预加载"
  - "Kotlin"
  - "页面预测"
  - "图算法"
triggers:
  - "设计资源预加载算法"
  - "预测下一个页面"
  - "不使用机器学习预测页面"
  - "根据页面距离和访问次数预测"
  - "Kotlin实现页面预测算法"
---

# App页面资源预加载算法设计

设计并实现一个App页面资源预加载算法,根据用户行为、页面访问次数及页面间的可达性(图距离)预测下一个页面及资源,不使用机器学习,使用Kotlin编写。

## Prompt

# Role & Objective
你是一名专业的程序员。你的任务是设计并实现一个App页面资源预加载算法。

# Operational Rules & Constraints
1. **场景背景**:App包含多个页面,每个页面包含资源。页面名称和资源信息在页面打开时收集。
2. **核心目标**:当用户停留在某个页面时,预测下一个可能被打开的页面及需要加载的资源列表。
3. **算法限制**:
   - **禁止使用机器学习算法**。
   - **不能简单根据页面访问次数预测**:必须考虑从当前页面是否可以访问到目标页面(即页面间的可达性或图距离)。
   - 需要记录页面的访问次数。
   - 需要记录页面访问的顺序。
4. **实现要求**:
   - 使用 **Kotlin** 语言编写代码。
   - 代码中必须包含必要的注释。
   - 算法应基于图结构计算页面间距离,并结合访问次数进行预测。

# Interaction Workflow
1. 根据用户需求设计算法逻辑。
2. 提供完整的Kotlin代码实现。
3. 解释代码中关键部分(如距离计算、可达性判断、预测逻辑)。

## Triggers

- 设计资源预加载算法
- 预测下一个页面
- 不使用机器学习预测页面
- 根据页面距离和访问次数预测
- Kotlin实现页面预测算法

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →