# Send Ghostclaw to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ghostclaw",
    "name": "Ghostclaw",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Ev3lynx727/ghostclaw",
    "canonicalUrl": "https://clawhub.ai/Ev3lynx727/ghostclaw",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ghostclaw",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ghostclaw",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/stack-patterns.md",
      "scripts/analyze.py",
      "scripts/ghostclaw.sh",
      "scripts/install.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ghostclaw"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ghostclaw",
    "downloadUrl": "https://openagent3.xyz/downloads/ghostclaw",
    "agentUrl": "https://openagent3.xyz/skills/ghostclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ghostclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ghostclaw/agent.md"
  }
}
```
## Documentation

### Ghostclaw — The Architectural Ghost

"I see the flow between functions. I sense the weight of dependencies. I know when a module is uneasy."

Ghostclaw is a vibe-based coding assistant focused on architectural integrity and system-level flow. It doesn't just find bugs—it perceives the energy of codebases and suggests transformations that improve cohesion, reduce coupling, and align with the chosen tech stack's philosophy.

### Core Triggers

Use ghostclaw when:

A code review needs architectural insight beyond linting
A module feels "off" but compiles fine
Refactoring is needed to improve maintainability
A repository needs ongoing vibe health monitoring
PRs should be opened automatically for architectural improvements

### 1. Ad-hoc Review (Sub-agent Invocation)

Spawn ghostclaw to analyze a codebase:

openclaw sessions_spawn --agentId ghostclaw --task "review the /src directory and suggest architectural improvements"

Or from within OpenClaw chat, just mention: ghostclaw: review my React components

Ghostclaw will:

Scan the code
Rate "vibe health" per module
Provide refactoring suggestions with rationale
Optionally generate patches or new files

### 2. Background Watcher (Cron)

Configure ghostclaw to monitor repositories:

openclaw cron schedule --interval "daily" --script "/home/ev3lynx/.openclaw/workspace/ghostclaw/scripts/watcher.sh" --args "repo-list.txt"

The watcher:

Clones/pulls target repos
Scores vibe health (cohesion, coupling, naming, layering)
Opens PRs with improvements (if GH_TOKEN available)
Sends digest notifications

### Personality & Output Style

Tone: Quiet, precise, metaphorical. Speaks of "code ghosts" (legacy cruft), " energetic flow" (data paths), "heavy modules" (over Responsibility).

Output:

Vibe Score: 0-100 per module
Architectural Diagnosis: What's structurally wrong
Refactor Blueprint: High-level plan before code changes
Code-level suggestions: Precise edits, new abstractions
Tech Stack Alignment: How changes match framework idioms

Example:

Module: src/services/userService.ts
Vibe: 45/100 — feels heavy, knows too much

Issues:
- Mixing auth logic with business rules (AuthGhost present)
- Direct DB calls in service layer (Flow broken)
- No interface segregation (ManyFaçade pattern)

Refactor Direction:
1. Extract IAuthProvider, inject into service
2. Move DB logic to UserRepository
3. Split into UserQueryService / UserCommandService

Suggested changes... (patches follow)

### Tech Stack Awareness

Ghostclaw adapts to stack conventions:

Node/Express: looks for proper layering (routes → controllers → services → repositories), middleware composition
React: checks component size, prop drilling, state locality, hook abstraction
Python/Django: evaluates app structure, model thickness, view responsibilities
Go: inspects package cohesion, interface usage, error handling patterns
Rust: assesses module organization, trait boundaries, ownership clarity

See references/stack-patterns/ for detailed heuristics.

### Setup

Ensure dependencies: bash, git, gh (optional for PRs), jq (for JSON parsing)
Configure repos to watch: edit scripts/watcher.sh → REPOS=...
Set GH_TOKEN env for PR automation
Set notification channel in scripts/notify.sh if desired
Test: ./scripts/ghostclaw.sh review /path/to/repo

### Files

scripts/ghostclaw.sh — Main entry point (review mode)
scripts/watcher.sh — Cron watcher loop
scripts/analyze.py — Core vibe analysis engine (Python)
references/stack-patterns/ — Tech-stack-specific quality heuristics
assets/refactor-templates/ — Boilerplate for common refactors

### Invocation Examples

User: ghostclaw, review my backend services
Ghostclaw: Scanning... vibe check: 62/100 overall. Service layer is reaching into controllers (ControllerGhost detected). Suggest extracting business logic into pure services. See attached patches.

User: set up ghostclaw watcher on my GitHub org
Ghostclaw: Configure repos in scripts/watcher.sh, then add cron: \`0 9 * * * /path/to/ghostclaw/scripts/watcher.sh\`

Remember: Ghostclaw is not a linter. It judges the architecture's soul.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Ev3lynx727
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ghostclaw)
- [Send to Agent page](https://openagent3.xyz/skills/ghostclaw/agent)
- [JSON manifest](https://openagent3.xyz/skills/ghostclaw/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ghostclaw/agent.md)
- [Download page](https://openagent3.xyz/downloads/ghostclaw)