agentsclimarketplace

Prime

Skill slamb2k/mad-skills/skills/prime

Load project context before implementing features or making architectural decisions. Invoke proactively at the start of significant work on any project. Scans CLAUDE.md, README, specs/, docs/, and source structure to build a context summary. Supports optional domain hints to focus on specific areas of the codebase. Use when you need project conventions, architecture understanding, or domain context before coding.From its SKILL.md

Install
npx -y skills add slamb2k/mad-skills --skill prime

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.9 KB, as published. Nobody here has run it

Prime - Project Context Loader

When this skill is invoked, IMMEDIATELY output the banner below before doing anything else. Pick ONE tagline at random β€” vary your choice each time. CRITICAL: Reproduce the banner EXACTLY character-for-character, including the diagonal / glyph before the name.

{tagline}

       /$$ /$$$$$$$  /$$$$$$$  /$$$$$$ /$$      /$$ /$$$$$$$$
      /$$/| $$__  $$| $$__  $$|_  $$_/| $$$    /$$$| $$_____/
     /$$/ | $$  \ $$| $$  \ $$  | $$  | $$$$  /$$$$| $$      
    /$$/  | $$$$$$$/| $$$$$$$/  | $$  | $$ $$/$$ $$| $$$$$   
   /$$/   | $$____/ | $$__  $$  | $$  | $$  $$$| $$| $$__/   
  /$$/    | $$      | $$  \ $$  | $$  | $$\  $ | $$| $$      
 /$$/     | $$      | $$  | $$ /$$$$$$| $$ \/  | $$| $$$$$$$$
|__/      |__/      |__/  |__/|______/|__/     |__/|________/

Taglines:

  • πŸ”‹ Loading the arsenal...
  • πŸ“š Knowledge is power!
  • πŸ“– Absorbing the sacred texts...
  • πŸ“‘ Context loading... please stand by!
  • πŸ’£ Priming the knowledge cannon!
  • πŸ€“ Time to do my homework!
  • πŸ“œ Downloading the lore...
  • 🧠 Brain cells: ACTIVATING

Output Formatting

After the banner, display parsed input:

β”Œβ”€ Input ────────────────────────────────────────
β”‚  {Field}:  {value}
β”‚  Flags:    {parsed flags or "none"}
└────────────────────────────────────────────────

Pre-flight results:

── Pre-flight ───────────────────────────────────
  βœ… {dep}           {version or "found"}
  ⚠️ {dep}           not found β†’ {fallback detail}
  ❌ {dep}           missing β†’ stopping
──────────────────────────────────────────────────

Stage/phase headers: ━━ {N} Β· {Name} ━━━━━━━━━━━━━━━━━━━━━━━━━

Status icons: βœ… done Β· ❌ failed Β· ⚠️ degraded Β· ⏳ working Β· ⏭️ skipped


Load project context to inform agent decisions. Raw file contents stay in a subagent β€” the primary thread only sees a structured PRIME_REPORT.

Step 1: Parse Arguments

Extract domain hints from the request (comma-separated). These are directory names or topic keywords to focus the context scan on. If no domain specified, load core context only (CLAUDE.md, README, specs/).

Step 2: Load Context via Subagent

Launch a general-purpose subagent to read files and build the report:

Task(
  subagent_type: "general-purpose",
  description: "Load and summarise project context",
  prompt: <see below>
)

Subagent Prompt

Load project context and return a structured summary. Raw file contents must
NOT appear in the report β€” summarise only.

Limit PRIME_REPORT to 30 lines maximum.

## Core Files (always load)

1. CLAUDE.md β€” Project conventions, architecture, instructions
2. README.md β€” Project overview, setup, usage
3. specs/ β€” Project specifications and roadmap (scan directory if present)
4. docs/ β€” Documentation directory (scan if present)

If a file is missing, record as NOT FOUND and continue.

## Domain Files

{For each requested domain hint, use Glob to find relevant files:}
- Search for directories matching the hint name (e.g., "auth" β†’ src/auth/, lib/auth/)
- Search for files matching *{hint}*.md, *{hint}*.yaml, *{hint}*.json
- Read the most relevant matches (max 5 files per domain)

For each file:
- If it exists: read and summarise (2-3 lines max per domain)
- If it doesn't exist: record as NOT FOUND and continue

## Graphify Awareness (existence check only)

Check whether a `graphify-out/` directory exists at the project root
(existence only β€” do NOT run any graphify query, read its contents, or treat
it as a dependency). Record the boolean in the report. This is purely additive:
when absent, the report is unchanged.

## Output Format

PRIME_REPORT:
- core_files_loaded: {count}/{total}
- missing_files: {list or "none"}
- domains_loaded: {list}
- per_domain_summary:
  - {domain}: {2-3 line summary}
- branch: {current branch from git branch --show-current}
- graphify_out_present: {true|false}
- ready_for: {inferred from loaded context}

Step 3: Present Summary

Parse PRIME_REPORT and present a clean summary to the user:

β”Œβ”€ Prime Β· Report ───────────────────────────────
β”‚
β”‚  βœ… Context loaded
β”‚
β”‚  πŸ“š Core:   {count}/{total} files loaded
β”‚  🌐 Branch: {branch}
β”‚
β”‚  πŸ“ Domains
β”‚     {domain}: {2-3 line summary}
β”‚     {domain}: {2-3 line summary}
β”‚
β”‚  ⚠️ Missing: {list or "none"}
β”‚
β”‚  🎯 Ready to assist with: {ready_for}
β”‚
└─────────────────────────────────────────────────

If graphify_out_present is true, add a single passive line after the report box (omit entirely when false):

graphify-out/ detected β€” codebase questions can be answered via /graphify

This is a hint only β€” never execute a graphify query on the user's behalf.

If CLAUDE.md was missing, warn the user and note that only domain context was loaded.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.