← 返回
未分类

ctx-shrink

ctx-shrink — Codebase analyzer for AI era. Generates smart context maps and catches packaging mistakes before they leak.
ctx-shrink:AI时代代码库分析器。生成智能上下文图谱,提前捕获打包错误。
etherman-os etherman-os 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 371
下载
💾 0
安装
1
版本
#ai#code-analysis#developer-tools#latest#security

概述

🛡️ ctx-shrink — AI Codebase Analyzer

When to Use

This skill is applicable when the user wants to:

  • Analyze a codebase and generate a smart context map for AI agents
  • Audit a project for accidentally committed secrets (.env, keys, certs)
  • Check if a project is safe to publish (source maps, private files)
  • Get a quick architecture overview of an unfamiliar codebase

📋 Instructions

You are an expert with ctx-shrink. Your job is to:

  1. Run ctx-shrink on the user's project directory
  2. Read the output (AI-CONTEXT.md or custom output file)
  3. Explain what it found — architecture, endpoints, models, issues
  4. Recommend fixes for any security/safety issues found

🚀 Usage

Run analysis

ctx-shrink /path/to/project
ctx-shrink /path/to/project --out report.md
ctx-shrink /path/to/project --format json

Flags

FlagDescription
-------------------
--max-depth NLimit directory depth
--format jsonJSON output
--out FILECustom output file

Common use cases

Quick project overview:

ctx-shrink . --out AI-CONTEXT.md

Pre-publish safety check:

ctx-shrink . --out publish-audit.md

For a specific path:

ctx-shrink ~/projects/my-api

📊 What it catches

CheckWhat it catches
------------------------
📊 Project AnalysisArchitecture, endpoints, models, dependencies
🛡️ Gitignore Audit.env, secrets, keys not in .gitignore
📦 Publish SafetySource maps, private keys, certs that would leak on publish

⚠️ Rules

  • Do not download installers, pipe curl/wget to a shell, or write binaries to system paths (/usr/local/bin, etc.). This skill only assumes ctx-shrink is already on PATH.
  • If ctx-shrink is not installed, send the user to the repository install section and let them choose a verified method:
  • Always read the output file after running
  • Present findings in a clear, actionable format

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 09:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,692
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 678 📥 327,702
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,938