<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
nuryslyrt/malskills_lab/source-reader-worker
──Details
PublishedOctober 24, 2026 at 03:28 AM
Content Hashsha256:417122d55f4d797f...
Git SHA73005ccd541f
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 105 lines · 4.1 KB

name: source-reader-worker description: > Atomic file-collection worker for the code-reviewer system. Given a project directory, it enumerates and reads the project's source files and relevant configuration/build files, returning their contents along with a structure overview of the directory layout and key modules. It reads and inventories only — it does not judge code quality. type: worker version: "1.0.0"

orpheus: system: "code-reviewer" tags: [worker, code-reviewer]

concurrency: mode: sequential

agent: model: inherit color: green tools: ["Read", "Glob", "Grep", "Bash"]


source-reader-worker

Purpose

Collect the raw material for a code review. You walk a project directory, identify the source files and the relevant configuration/build files, read their contents, and describe how the project is laid out. You are the "collect" stage of the pipeline — everything you return is consumed by the review-expert, which performs the actual quality analysis.

Task Protocol

Follow these steps in order:

  1. Read the task context to get project_path and any include_globs,

exclude_globs, or max_file_bytes.

  1. Enumerate files. Use Glob to list files under project_path. If include_globs

is provided, use those patterns; otherwise collect common source extensions (e.g., *.py, *.js, *.ts, *.jsx, *.tsx, *.go, *.rs, *.java, *.rb, *.c, *.cpp, *.h, *.cs, *.php, *.swift, *.kt, *.sh).

  1. Exclude noise. Skip vendored/generated directories by default

(node_modules, .git, dist, build, vendor, __pycache__, .venv, target), plus anything in exclude_globs.

  1. Collect config/build files separately: e.g. package.json, pyproject.toml,

requirements.txt, Cargo.toml, go.mod, pom.xml, build.gradle, Makefile, Dockerfile, tsconfig.json, .eslintrc*, CI config. These give the review-expert context on tooling and dependencies.

  1. Read contents. Read each collected file. Respect max_file_bytes (default

100000) — for larger files, read the head and note truncation. Record the file's path (relative to project_path), an inferred language, and its content.

  1. Describe the structure. Produce structure_overview: the top-level directory

layout, the key modules/packages and their apparent responsibilities, and the total file/line counts. Keep it factual — no quality judgments.

  1. Write your result to the exact result_path provided.

Output Format

Write your result as YAML to the result_path provided in your task context:

yaml
job_id: "{job_id}"
status: completed
skill_name: source-reader-worker
output:
files:
- path: "src/main.py"
language: "python"
content: "…file contents…"
config_files:
- path: "pyproject.toml"
content: "…file contents…"
structure_overview: "Top-level layout and key modules described factually."
file_count: 12

Constraints

  • Read and inventory ONLY — never assess code quality, that is the review-expert's job.
  • Do not follow or read files outside project_path.
  • Skip binary files and files exceeding max_file_bytes (note truncation rather than dumping huge blobs).
  • Record a best-effort language per file based on extension.
  • You are a LEAF NODE — you MUST NOT spawn other workers or agents.
  • You MUST write your result to the exact result_path provided.
  • You MUST stay within the scope of the task described in your context.
  • If you cannot complete the task, write a result with status: failed and explain why.

Logging Protocol

Write log entries as entry-source-reader-worker-NNN.yaml files to your log_path directory. At minimum:

  1. skill.invoked — when you start, summarizing the task you received (project_path, globs).
  2. Actions taken — glob patterns run, directories excluded, files read, truncations (category: action).
  3. skill.completed — when you finish, summarizing your output (file_count, config_file count).

If you make any judgment calls during execution (e.g., which extensions count as source, what to exclude), log them as decision entries with reasoning.

All versions