layerkit-source-edit-client

layerkit-source-edit-client is a skill for Claude Code, Codex from hariharapanigrahy/layerkit. It costs 28 tokens per session (1,195 once invoked), scanned A, original, MIT.

A workflow for adding or changing vendor integrations by editing the existing production code directly. A vendor integration connects a customer's application to an outside service.

In plain words
What is it for?
Use it to inspect interfaces and mappings, update adapters and tests across language surfaces, record what changed, and run the client's verification command.
Why use it?
It keeps the change in the real data-handling code, covers every supported language, removes stale code, and verifies the package before handoff.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hariharapanigrahy/layerkit/layerkit-source-edit-client
Any agent
npx skills add hariharapanigrahy/layerkit --skill layerkit-source-edit-client
Clone the repo
git clone --depth 1 https://github.com/hariharapanigrahy/layerkit

Made for: Claude Code, Codex.

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 layerkit-source-edit-client

README.md
[![agentmods](https://agentmods.dev/badge/skills/hariharapanigrahy/layerkit/layerkit-source-edit-client.svg)](https://agentmods.dev/skills/hariharapanigrahy/layerkit/layerkit-source-edit-client)
Your own site
<a href="https://agentmods.dev/skills/hariharapanigrahy/layerkit/layerkit-source-edit-client"><img src="https://agentmods.dev/badge/skills/hariharapanigrahy/layerkit/layerkit-source-edit-client.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.01195
Opus 5 $0.00014 $0.00598
Sonnet 5 $0.00006 $0.00239
Haiku 4.5 $0.00003 $0.00120

Measured 3d ago against content hash c12d0c56c49b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

layerkit-source-edit-client scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/layerkit-source-edit-client/SKILL.md · 79 lines

How it starts

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

layerkit-source-edit-client

Modify the existing production datalayer and production source files (adapters, registry, router, tests) directly from evidence. Do not ask the CLI for plan files or source patches.

Optional project.json source-edit hints:

{
  "sourceEdit": {
    "moduleRoot": "apps/platform/integrations",
    "denyEdit": ["**/legacy/**"]
  }
}

Protocol

  1. Read memory/runbooks/surface-inventory.json (from surfaces step). Every language must end as updated (with paths) or residual (with reason) before mark-done — Layerkit enforces this.
  2. Read existing production integration code, interfaces, mappers, tests, and package style.
  3. Run layerkit-deletion-first: remove/update stale code/docs/tests before adding files.
  4. Inspect the existing interface/datalayer and implement in production paths for each inventory language (or mark residual).
  5. For every new file/function/export, list what it replaces; if it replaces nothing, justify why it must exist.
  6. Update surface-inventory.json statuses after each language is done; re-run source-edit iteration until no language is pending.
  7. Run the client package verification command, such as the package's build/test/coverage CI target; then:
    layerkit doctor
    
  8. For any strategic redirect or broad rewrite, define what must pass, the proof artifact, and the fallback before edits start; run a small proof step first: an eval, end-to-end QA check, contract-heal case, release checklist item, package-level fixture, or before/after acceptance test.
  9. Strengthen executable tests relative to implementation size. Source-edit work that changes behavior must cover the client-package edit path, mapping semantics, deletion-first behavior, and the relevant CI/eval gate.

Mapping Rules

  • Generic rename pattern (email is only an example): if the vendor renames any field (e.g. emailemail_id) and the client still exposes the same domain value (getEmail()), update the existing vendor setter from the existing client getter: payload.setEmailId(event.getEmail()). Same rule for any evidence-backed rename. Do not guess renames from names alone — require docs/OpenAPI/changelog evidence.
  • If the vendor removes a field, remove the stale mapping and update tests. Do not keep a wrapper for removed vendor behavior.
  • If the vendor adds a field and the client interface/datalayer already has equivalent data, map the existing client field into the new vendor shape.
  • If no client source represents the required data, treat it as an unsupported datalayer gap: leave a localized TODO and handoff note with the missing interface/datalayer gap.
  • If research proved zero production field drift, do not invent edits: attest residual-no-field-edit with residual justification. Do not bump apiVersion or SDK alone as a substitute for real source work.

Read the full file on GitHub · 79 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. 3d ago First seen · 79 lines · 28 tokens per session scan A c12d0c56c49b

Subscribe to this mod's changes

layerkit-source-edit-client is a skill published in the GitHub repository hariharapanigrahy/layerkit (8 stars, last pushed 27d ago), licensed MIT. It adds 28 tokens to every session and 1,195 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bcc-plan-spar

BCC align+lock+review PLAN.md for one slice (no product code). Slash: /bcc-plan-spar · chat: bcc:plan-spar · "lock PLAN" · spar the plan. Args: rounds=N (auto-review cap), review=self|subagent|cli|auto|off. Grill until clear enough (no default Q&A quota). Hand off to bcc-clean-cut after human APPROVE.

bo-cao/breaking-coding-chaos · 91 tokens

bcc-throughline

BCC global progress cockpit (plans.md/progress.md/findings.md). Slash: /bcc-throughline · chat: bcc:throughline · "where are we" · reprioritize · resume after /clear. Not for coding or full PLAN grill.

bo-cao/breaking-coding-chaos · 56 tokens

bcc-breaking-coding-chaos

BCC main skill: dual-loop coding workflow (throughline → plan-spar → clean-cut) or quick status+next. Slash: /bcc-breaking-coding-chaos · chat: bcc:breaking-coding-chaos · "run BCC" · "BCC status" · "what next BCC". Needs a real idea (1:1 implement). Args: goal text, or status. May pass plan-spar review budget as…

bo-cao/breaking-coding-chaos · 101 tokens

chinese-git-workflow

适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖.

Leodorareluctant259/superpowers-zh · 33 tokens

chinese-commit-conventions

中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化.

Leodorareluctant259/superpowers-zh · 28 tokens

systematic-debugging

Skill "systematic-debugging" from Leodorareluctant259/superpowers-zh, covering 系统化调试, 概述, 铁律, 何时使用 and 四个阶段.

Leodorareluctant259/superpowers-zh · 24 tokens