AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Unicorn Code Reading

skill-andrey-learning-machines-swe-harness-unicorn-code-reading · by andrey-learning-machines

>-

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-andrey-learning-machines-swe-harness-unicorn-code-reading

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-andrey-learning-machines-swe-harness-unicorn-code-reading)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Unicorn Code Reading? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Code Reading

Strategic Reading Protocol

1. Entry Points First

Start where execution begins. Never read alphabetically.

# Find entry points
grep -r "app.run\|app.listen\|@app.route\|def main\|if __name__" --include="*.py" --include="*.js"

Read order: Main entry -> route definitions -> request handlers -> business logic -> data layer -> utilities

2. Data Flow Tracing

Follow: INPUT -> VALIDATION -> PROCESSING -> STORAGE -> OUTPUT

At each step ask: Where does data enter? What validations? How transformed? Where stored? What side effects?

3. Error Path Mapping

grep -r "try:\|except\|catch\|raise\|throw" --include="*.py" --include="*.js"

Map: What fails? How detected? How handled (retry/fallback/propagate)? What messages returned? Errors logged with context?

4. Integration Points

Identify system boundaries (high-risk areas): APIs, databases, message queues, file systems, external services.

Document for each: expected format, return format, failure modes, retry logic, timeouts.

Comprehension Levels

| Level | Question | Technique | |-------|----------|-----------| | L1: Behavior | What does it DO? (inputs, outputs, side effects) | Read signature + docstring + tests | | L2: Mechanics | HOW does it work? (algorithm, data structures, steps) | Read implementation | | L3: Design | WHY this way? (tradeoffs, constraints, optimization target) | Comments, git log/blame, issue tracker | | L4: Impact | What ELSE affected? (callers, dependencies, blast radius) | grep -r "function_name", check tests |

Legacy Code Protocol

  1. Run existing tests -- verify current behavior is captured
  2. Add characterization tests -- document current behavior (even if "wrong")
  3. Map dependency graph -- who calls this? what does this call?
  4. Identify load-bearing walls -- critical code that MUST NOT break
  5. Find seams -- safe change points (object, preprocessing, link seams)

See references/legacy-code-protocol.md for detailed steps and seam patterns.

Reading Techniques

| Technique | Purpose | |-----------|---------| | Follow happy path first | Understand main flow before edge cases | | Map side effects | Find hidden consequences (DB writes, API calls, emails) | | Identify invariants | Assumptions that must ALWAYS hold | | Note coupling points | High coupling = high risk areas |

See references/reading-techniques.md for detailed guidance and examples.

Reading Checklist

Starting a new codebase:

  • [ ] Find entry points (main, routes, handlers)
  • [ ] Trace data flow for one request/feature
  • [ ] Map error handling and failure modes
  • [ ] Identify external dependencies
  • [ ] Run existing tests
  • [ ] Locate critical business logic
  • [ ] Note high coupling points
  • [ ] Document in 1-page architecture diagram

Before Changing Legacy Code

  • [ ] Run existing tests (capture baseline)
  • [ ] Add characterization tests (document current behavior)
  • [ ] Map dependency graph (who calls this? what does this call?)
  • [ ] Identify load-bearing walls (critical paths)
  • [ ] Find seams (safe change points)
  • [ ] Make smallest change possible
  • [ ] Verify behavior unchanged (tests pass)

Common Patterns to Recognize

Predict structure without reading every line:

  • Model-View-Controller -- separation of concerns
  • Repository Pattern -- data access abstraction
  • Strategy Pattern -- algorithm selection
  • Observer Pattern -- event notification
  • Factory Pattern -- object creation
  • Decorator Pattern -- behavior extension
  • Adapter Pattern -- interface translation

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.