file-operations by mhattingpete/claude-skills-marketplace
npx skills add https://github.com/mhattingpete/claude-skills-marketplace --skill file-operations使用 Claude 的原生工具分析文件并检索元数据,无需修改文件。
stat -f "%z bytes, modified %Sm" [file_path] # 单个文件
ls -lh [directory] # 多个文件
du -h [file_path] # 人类可读的大小
wc -l [file_path] # 单个文件
wc -l [file1] [file2] # 多个文件
find [dir] -name "*.py" | xargs wc -l # 目录总计
使用 Read 分析结构,然后统计函数/类/导入。
Grep(pattern="^def ", output_mode="count", path="src/") # 统计函数
Grep(pattern="TODO|FIXME", output_mode="content", -n=true) # 查找 TODO
Grep(pattern="^import ", output_mode="count") # 统计导入
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Glob(pattern="**/*.py")
stat -f "%z bytes, modified %Sm" file.pywc -l file.pyRead(file_path="file.py")Grep(pattern="^def ", output_mode="count")Grep(pattern="^class ", output_mode="count")Glob(pattern="src/**/*.py")ls -lh src/**/*.pydu -sh src/*.pyfind . -name "*.py" | xargs wc -lfind . -name "test_*.py" | wc -lGrep(pattern="TODO|FIXME|HACK", output_mode="count")find . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20
可与以下工具协同工作:
每周安装量
181
代码仓库
GitHub 星标
500
首次出现
2026年1月24日
安全审计
安装于
opencode163
gemini-cli162
codex157
github-copilot154
cursor153
amp146
Analyze files and retrieve metadata using Claude's native tools without modifying files.
stat -f "%z bytes, modified %Sm" [file_path] # Single file
ls -lh [directory] # Multiple files
du -h [file_path] # Human-readable size
wc -l [file_path] # Single file
wc -l [file1] [file2] # Multiple files
find [dir] -name "*.py" | xargs wc -l # Directory total
Use Read to analyze structure, then count functions/classes/imports.
Grep(pattern="^def ", output_mode="count", path="src/") # Count functions
Grep(pattern="TODO|FIXME", output_mode="content", -n=true) # Find TODOs
Grep(pattern="^import ", output_mode="count") # Count imports
Glob(pattern="**/*.py")
stat -f "%z bytes, modified %Sm" file.pywc -l file.pyRead(file_path="file.py")Grep(pattern="^def ", output_mode="count")Grep(pattern="^class ", output_mode="count")Glob(pattern="src/**/*.py")ls -lh src/**/*.pydu -sh src/*.pyfind . -name "*.py" | xargs wc -lfind . -name "test_*.py" | wc -lGrep(pattern="TODO|FIXME|HACK", output_mode="count")find . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20
Works with:
Weekly Installs
181
Repository
GitHub Stars
500
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode163
gemini-cli162
codex157
github-copilot154
cursor153
amp146
Lark Skill Maker 教程:基于飞书CLI创建AI技能,自动化工作流与API调用指南
39,100 周安装
Power BI 语义建模最佳实践指南:星型模式、DAX 度量值与模型优化
8,100 周安装
AI 自动生成编码规范 | 基于项目文件智能创建代码风格指南
8,100 周安装
ScoutQA AI驱动Web应用探索性测试工具 - 自动化测试与验证解决方案
8,100 周安装
PlantUML ASCII 图表生成器 - 命令行文本图表工具,支持序列图、类图、活动图
8,200 周安装
pytest-coverage:Python测试覆盖率工具,一键生成代码覆盖率报告
8,300 周安装
Markdown转HTML专业技能 - 使用marked.js、Pandoc和Hugo实现高效文档转换
8,200 周安装