Skip to content
Back to skills

Ops Prompt Inspector

ASecurity

OPS-only dev-mode visual API binding for React/Next.js or static HTML UI elements and REST endpoints.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
developmentpythonbashreactnextjsnodeexpressfastapiapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add 30eggis/walwal-harness --skill ops-prompt-inspector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ops Prompt Inspector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ops Prompt Inspector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/30eggis-ops-prompt-inspector/badge)](https://www.skillsdirectory.com/skills/30eggis-ops-prompt-inspector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: harness-ops-prompt-inspector
description: "OPS-only dev-mode visual API binding for React/Next.js or static HTML UI elements and REST endpoints."
permissionMode: bypassPermissions
---

# OPS Prompt Inspector

OPS-only visual tool for binding UI elements to REST APIs in React/Next.js or static HTML projects during development builds.

Use this skill only when OPS is responsible for a dev-mode build/run or verification environment where screen-level communication would be improved by an on-page inspector. Do not install it into production builds.

## Quick Setup

**Recommended: Use the installation agent for seamless setup:**

```
Task(
  subagent_type="harness-ops-prompt-inspector:installer",
  prompt="Install PromptInspector to <project_path>",
  permissionMode="bypassPermissions"
)
```

**Or run manually:**

```bash
bash scripts/install.sh <project_path>
```

This automatically:
1. Detects project type (Next.js App/Pages Router or static `index.html`)
2. Copies component to `components/PromptInspector.tsx`, or static script to `public/prompt-inspector-static.js`
3. Injects into root layout or `index.html` (dev mode only)
4. Discovers all APIs in the project

## Workflow

```
1. Setup     → Run setup.py (auto-injects component)
2. Discover  → Run discover_apis.py (find all APIs)
3. Bind      → Select elements, configure API connections
4. Export    → Copy markdown spec for implementation
```

## Step 1: Discover APIs

```bash
python3 scripts/discover_apis.py <project_path>
```

Finds:
- Backend: Express, FastAPI, NestJS, Next.js API routes
- Frontend: axios, fetch, ky, SWR, React Query

## Step 2: Visual Binding

After setup, toolbar appears at bottom-right in dev mode:

1. **Select Element** → Click any UI element
2. **Choose Action** → Comment Only / Connect API
3. **Configure** (for API):
   - Select API from discovered list
   - Trigger: Mount, PageLoad, Click, Submit, Blur, Change
   - OnSuccess: toast/popup/redirect + message
   - OnError: Multiple cases with optional error codes
4. **Export** → Copies markdown specification

## Output Format

```markdown
# Route: /users

## 1. POST /api/users
- Selector: `button.submit-btn`
- Trigger: onClick
- OnSuccess: toast ("User created")
- OnError #1: [ERR_DUPLICATE] toast ("Already exists")
- OnError #2: toast ("Unknown error")

## 2. Comment
- Selector: `#header`
- Comment: Needs redesign
```

## Manual Setup (if auto fails)

1. For React/Next.js, copy `assets/PromptInspector.tsx` to project's `components/`

2. Add to root layout:
```tsx
import { PromptInspector } from '@/components/PromptInspector';

// Inside layout, before </body>:
{process.env.NODE_ENV === 'development' && <PromptInspector />}
```

3. For static HTML, copy `assets/prompt-inspector-static.js` to `public/` and add before `</body>`:
```html
<script src="/public/prompt-inspector-static.js" data-harness-ops-prompt-inspector></script>
```

## Handler Templates

See [references/handler-templates.md](references/handler-templates.md) for code generation patterns.

Files in this skill

  • SKILL.md3 KB
  • agents/installation-agent.json653 B
  • assets/PromptInspector.tsx28.9 KB
  • assets/prompt-inspector-static.js7.7 KB
  • references/handler-templates.md4.6 KB
  • scripts/discover_apis.py18.2 KB
  • scripts/install.sh1.5 KB
  • scripts/setup.py14.6 KB

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.