Source Analysis for Openclaw

A technical toolset for extracting architectural patterns, tool definitions, and system prompts from GitHub repositories and npm packages.

lgugeng
v1.0.1
May 11, 2026
0
695
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install source-analysis

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install source-analysis using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Source Analysis?

Source Analysis is a specialized capability designed for developers to perform deep technical audits of AI-driven projects and agentic systems. By leveraging automated collection and binary extraction techniques, this tool uncovers the underlying logic, prompt engineering strategies, and permission models used by industry-leading agents. It serves as a vital component for those building their library of Openclaw Skills to benchmark or research modern software architecture and agentic design patterns.

Source Analysis Use Cases

  • Benchmarking the architecture of AI coding assistants like Claude Code, Cursor, or Copilot.
  • Reverse engineering system prompts and behavioral instructions from compiled binaries or distributed packages.
  • Analyzing tool definitions and input/output schemas within Agentic SDKs to understand integration patterns.
  • Researching memory management, permission systems, and context handling in open-source projects.

How Source Analysis Works

  1. Information Gathering: The skill explores GitHub repositories by fetching READMEs and recursive file trees using raw content URLs and APIs.
  2. Package Acquisition: It downloads and unpacks npm or PyPI packages to inspect distribution structures and platform-specific binaries.
  3. Binary Extraction: It uses advanced grep patterns to identify identity declarations, tool names, and system prompt segments embedded within executables.
  4. Schema Analysis: The tool parses TypeScript definition files to map out tool names, permission models, and concurrency safety flags.
  5. Report Generation: All extracted data is synthesized into a structured Markdown analysis report for architectural review.

Source Analysis Setup

To integrate this capability into your Openclaw Skills workflow, ensure your environment has access to standard CLI utilities. Basic commands used by the skill include:

# Download and unpack an npm package for analysis
npm pack @scope/package-name
tar xzf package-name-*.tgz

# Extract identity declarations from a binary file
grep -aoP 'You are [^"]{0,500}' /path/to/binary | sort -u

Source Analysis Data Schema & Taxonomy

The skill organizes findings into structured reports and temporary workspaces:

Component Details
Workspace Report Saved as {workspace}/source-analysis-{project-name}.md in structured Markdown.
Temporary Data Package fragments and binary stubs are stored in /tmp/ for processing.
Report Sections Includes Architecture Overview, System Prompts, Tool Definitions, and Design Patterns.
Schema Formats Extracted tool schemas are represented in JSON or Markdown tables for clarity.

Source Analysis Advanced Features

  • Heuristic-based detection of feature flags and environment configuration parameters.
  • Multi-stage binary inspection using targeted grep patterns to bypass missing strings commands.
  • Automated mapping of agentic permission systems and execution classifiers.
  • Correlation analysis between raw GitHub source and compiled distribution packages.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*