data-access-patterns

data-access-patterns is a skill for Claude Code from mnthe/hardworker-marketplace. It costs 54 tokens per session (2,009 once invoked), scanned B, original, MIT.

A guide for ultrawork agents on reading session, task, and project context data. It explains when to use scripts for structured JSON data and when to read Markdown documents directly.

In plain words
What is it for?
Use it when building or operating ultrawork agents that need session details, task definitions, project context, or planning documents.
Why use it?
It helps agents retrieve the right information efficiently and avoid using the wrong access method.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/name/.claude/plugins/.../scripts.

Part of the ultrawork plugin — 15 skills, 9 commands shipped together

Good fit Use it when building or operating ultrawork agents that need session details, task definitions, project context, or planning documents.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add mnthe/hardworker-marketplace
Claude Code
/plugin install ultrawork

Made for: Claude Code.

Or install ultrawork, the plugin that ships this one along with the rest of its 15 skills, 9 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-access-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/mnthe/hardworker-marketplace/data-access-patterns/github.svg)](https://agentmods.dev/skills/mnthe/hardworker-marketplace/data-access-patterns)
Your own site
<a href="https://agentmods.dev/skills/mnthe/hardworker-marketplace/data-access-patterns"><img src="https://agentmods.dev/badge/skills/mnthe/hardworker-marketplace/data-access-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-access-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/mnthe/hardworker-marketplace/data-access-patterns"><img src="https://agentmods.dev/badge/skills/mnthe/hardworker-marketplace/data-access-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.02009
Opus 5.5 $0.00022 $0.00804
Sonnet 5.5 $0.00011 $0.00402
Haiku 4.5 $0.00005 $0.00201

Measured 3mo ago against content hash bd509e9617be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

data-access-patterns scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/ultrawork/sessions/abc-123/tasks/1.json
plugins/ultrawork/skills/data-access-patterns/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Access Patterns

IMPORTANT: Placeholder Notation

This document uses placeholder syntax to indicate values that must be substituted from your agent prompt:

  • {SCRIPTS_PATH} - Replace with the actual SCRIPTS_PATH value from your prompt
  • ${CLAUDE_SESSION_ID} - Replace with the actual session ID from your prompt

These are NOT bash environment variables. They are text placeholders documenting what values you should use.

Example:

  • Documentation shows: bun "{SCRIPTS_PATH}/task-get.js" --session ${CLAUDE_SESSION_ID}
  • Your prompt provides: SCRIPTS_PATH: /Users/name/.claude/plugins/.../scripts and CLAUDE_SESSION_ID: abc-123
  • You should execute: bun "/Users/name/.claude/plugins/.../scripts/task-get.js" --session abc-123

Core Rule: JSON via Scripts, Markdown via Read

Always use scripts for JSON data. Never use Read tool directly on JSON files.

Data Type Access Method Tool
session.json session-get.js Bash
context.json context-get.js Bash
tasks/*.json task-get.js, task-list.js Bash
exploration/*.md Direct file read Read
docs/plans/*.md Direct file read Read

Why Scripts for JSON?

1. Token Efficiency

JSON structure wastes significant context tokens:

{
  "version": "6.1",
  "session_id": "abc-123",
  "working_dir": "/path/to/project",
  "phase": "PLANNING",
  "exploration_stage": "overview",
  ...
}

Every brace, quote, comma, and key name consumes tokens. For large session files with evidence arrays, this can waste thousands of tokens.

Script output with --field flag:

bun "{SCRIPTS_PATH}/session-get.js" --session ${CLAUDE_SESSION_ID} --field phase
# Output: PLANNING

Returns only the value you need—no JSON structure overhead.

2. Field Extraction

Scripts support precise data extraction:

# Single field
bun "{SCRIPTS_PATH}/session-get.js" --session ${CLAUDE_SESSION_ID} --field phase

# Nested field (dot notation)
bun "{SCRIPTS_PATH}/session-field.js" --session ${CLAUDE_SESSION_ID} --field options.auto_mode

# AI-friendly summary
bun "{SCRIPTS_PATH}/context-get.js" --session ${CLAUDE_SESSION_ID} --summary

Read the full file on GitHub · 275 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 275 lines · 54 tokens per session scan B bd509e9617be

Subscribe to this mod's changes

data-access-patterns is a skill published in the GitHub repository mnthe/hardworker-marketplace (4 stars, last pushed 7mo ago), licensed MIT. It adds 54 tokens to every session and 2,009 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

data-access-patterns compared with skills from other repositories

data-access-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-access-patternsmnthe/hardworker-marketplaceSkill47mo agoMITB54Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code