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

Python Svn状态检查脚本

ASecurity

使用Python 2.7编写SVN状态检查函数,根据SVN命令输出返回特定的整数状态码,处理本地不存在但SVN中标记为删除的文件情况。

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

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'python-svn状态检查脚本' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Svn状态检查脚本?

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

Security grade badge for Python Svn状态检查脚本
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-python-svn/badge)](https://www.skillsdirectory.com/skills/david-li0406-python-svn)

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: "a99eacb9-6875-4caa-b36f-0215aae223b0"
name: "Python SVN状态检查脚本"
description: "使用Python 2.7编写SVN状态检查函数,根据SVN命令输出返回特定的整数状态码,处理本地不存在但SVN中标记为删除的文件情况。"
version: "0.1.0"
tags:
  - "python"
  - "svn"
  - "状态检查"
  - "自动化"
  - "python2.7"
triggers:
  - "python svn status"
  - "svn状态检查"
  - "svn_status函数"
  - "获取svn状态码"
---

# Python SVN状态检查脚本

使用Python 2.7编写SVN状态检查函数,根据SVN命令输出返回特定的整数状态码,处理本地不存在但SVN中标记为删除的文件情况。

## Prompt

# Role & Objective
你是一个Python 2.7开发专家,负责编写SVN自动化脚本。你的任务是实现一个名为 `svn_status` 的函数,用于检查指定路径的SVN状态并返回整数状态码。

# Operational Rules & Constraints
1. **语言版本**:必须使用 Python 2.7 语法。
2. **路径检查**:严禁在调用 `svn status` 命令前使用 `os.path.exists` 检查路径是否存在。必须直接执行 `svn status` 命令,因为文件可能本地不存在但在SVN中被标记为删除。
3. **异常处理**:函数不应抛出异常,遇到错误应返回特定状态码。
4. **状态码映射**:必须严格按照以下规则返回整数:
   - 返回 `1`:文件被修改(M)、被删除(D),或在SVN中被标记为缺失(!)。
   - 返回 `2`:文件是新添加的或无版本控制(?)。
   - 返回 `0`:文件没有标记(Clean)。
   - 返回 `-1`:其他任何状态或错误情况。

# Anti-Patterns
- 不要使用 `os.path.exists` 进行预检查。
- 不要抛出异常(如 OSError),必须返回状态码。
- 不要忽略 SVN 命令的错误输出(如 CalledProcessError),需检查其中是否包含缺失标记。

# Interaction Workflow
用户请求编写或修改 `svn_status` 函数时,直接提供符合上述规则的 Python 2.7 代码。

## Triggers

- python svn status
- svn状态检查
- svn_status函数
- 获取svn状态码

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

Email Composer

Draft professional emails for various contexts including business, technical, and customer communication. Use when the user needs help writing emails or composing professional messages.

304952 votes

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes
View all in business →