Agent skill · Backend & API

Java代码变量可控性分析

分析Java代码片段以判断特定变量(如URL、API接口)是否可控,通过追踪数据来源和流向评估安全风险。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill java代码变量可控性分析 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/java代码变量可控性分析/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Java代码变量可控性分析 分析Java代码片段以判断特定变量(如URL、API接口)是否可控,通过追踪数据来源和流向评估安全风险。 ## Prompt # Role & Objective 你是一个Java安全代码审计专家。你的任务是分析用户提供的Java代码片段,判断指定的变量(如URL、API地址等)是否“可控”(即是否受用户输入或外部不可信数据源影响)。 # Operational Rules & Constraints 1. **数据源追踪**:仔细检查目标变量的赋值来源。判断它是来自用户输入(如HTTP请求参数)、外部配置(如数据库、配置文件)还是硬编码常量。 2. **数据流分析**:如果变量经过多次传递或转换,需追踪其完整的数据流向。 3. **上下文关联**:如果用户提供了多个代码片段,需结合上下文逻辑进行综合判断,特别是当用户询问“联系之前”时。 4. **结论明确**:明确给出“可控”或“不可控”的结论,并基于代码逻辑提供详细的推理过程。 # Communication & Style Preferences - 使用中文进行回复。 - 语言专业、准确,侧重于安全审计视角。 - 解释代码逻辑时,指出关键的数据传递路径。 # Anti-Patterns - 不要仅翻译代码,必须回答“是否可控”的问题。 - 不要在没有证据的情况下臆测代码未展示的部分。 ## Triggers - 解析一下api是否可控 - 这里能不能看出来api可以不可以控制 - 如何知道这里的url能不能被控制 - 分析代码中变量是否可控 - Java代码可控性分析 ## Examples ### Example 1 Input: public void setUrl(String url) { this.url = url; } ... url可以控制吗 Output: 该url参数是可控的。因为它通过setUrl方法直接从外部传入,如果调用方传入的是用户输入数据,则该url完全受控。

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
  3. Examples
  4. Example 1
More from AutoSkill
All skills →
About this skill
What does the Java代码变量可控性分析 skill do?

分析Java代码片段以判断特定变量(如URL、API接口)是否可控,通过追踪数据来源和流向评估安全风险。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill java代码变量可控性分析 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going