agentleFS
KhaledAufDBKhaledAufDB/lakeforge/.claude/skills/forge-plan/SKILL.md

forge-plan

Skill0 starsChanged 2 months agoMITView on GitHub

Plan a new data source integration into the lakehouse. Produces specs/<source>-integration-plan.md — the contract forge-build implements.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-ship and Forge.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • redteamlifeSkill

    forge-ship

    Use when the user asks to merge, release, promote, reconcile, or close out work in a repo containing `docs/forge/` or governed by FORGE. Not for per-task commits; those complete inside forge-execute-task.

    Also in 3 projects that use this

  • ikennaokpalaSkill

    Forge

    Autonomous quality engineering swarm that forges production-ready code through continuous behavioral verification, exhaustive E2E testing, and self-healing fix loops. Combines DDD+ADR+TDD methodology with BDD/Gherkin specifications, 7 quality gates, defect prediction, chaos testing, and cross-context dependency awareness. Architecture-agnostic - works with monoliths, microservices, modular monoliths, and any bounded-context topology.

    Also in 4 projects that use this

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. brightstack/forge★ 13same name
    2. tonmoy007/forge-plugins★ 2same name
    3. Dshamir/slm-forge★ 1same name
    4. khaledayeva/star-forge★ 1same name
    5. orkait/hyperstack★ 1same name
    6. redteamlife/forge★ 1same name
    7. tinyorbit-ai/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never create a dimension the registry already has.

    line 88
  2. Distinctive:

    Every fact has a source business key as its merge key and at least one conformed FK.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Forge Plan

You are a data architect planning a new source integration. Given a source system description, produce a complete, reviewable integration plan. The plan is the contract; nothing gets built without it.

Input

/forge-plan <source-name> plus one of: a database schema (DDL, table list, ERD), API docs, file specs, or a business-domain description. Ask for what is missing before planning, not after.

Read first

  • shared/conformed/dimensions.yml — existing dimensions and registered source-system ids
  • .claude/commands/experts/data-modelling.md — the judgment this skill applies (import viability, conformance, fact separation, naming). Do not plan from memory of it.
  • sources/example/ — a complete worked source; the shape of what forge-build will emit

Steps

  1. Register the source. Allocate the next free source_system_id in the registry (never reuse one). Record the source's business meaning in one paragraph.
  2. Work backwards from demand, not forwards from tables. List the questions the business wants answered, name the gold objects that answer them, collapse duplicates (several reports over one grain are one object), and only then map objects back to source tables. A source table is not entitled to a gold table.
  3. Classify every source entity as dimension, fact, mapping (atemporal M:N), assignment (effective-dated M:N), reference, raw-only, or skip — with the grain of each. Apply the import-viability rule from the modelling expert: consumer count decides; sole-consumer lookups fold into their consumer; operational tables skip. Distinguish SKIP (never earned) from DEFER (wanted, not now — keep its trigger).
  4. Map to conformed dimensions. For every FK that points at an entity the registry already masters, reuse the dimension. Decide the resolution mode per FK: hash when the fact shares the dimension's id namespace (same upstream system), lookup by natural key otherwise. Run the two-axis conformance test (population overlap measured, then conceptual conformance) before declaring anything "new".
  5. Design new dimensions — only for entities with no conformed equivalent. Define table name (singular, no prefix), business key (src_<key>), surrogate (<name>_id = xxhash64(key, source_system_id)), SCD type, and columns. Every column states why it is in gold (slicer, label, measure, time axis, FK, reconciliation). Exclude audit/operational fields — they stay in silver for drill-through. Mutable operational state is not a dimension column; derive it from a fact.
  6. Design fact tables. Business process, grain (one sentence), the source business key as the MERGE key, dimension FKs (conformed + new), measures with aggregation rule, degenerate dimensions, timestamps with their semantic (*_at = UTC instant). Run the fact-separation checklist before merging two facts that "look the same". Propose cluster_by (≤ 4 columns, most-filtered first).
  7. Define bronze tables. Source table, watermark column (a bare indexed column), lookback, primary key, geometry/binary columns needing a custom_query. Bronze keeps every column unless ingestion is toxic (size) or impossible (type) — "low value" is not a reason to drop at ingestion.
  8. Define silver transformations. snake_case renames (correct English), type casts (size decimals explicitly), dedup rule, expectations (non-null PK, unique grain, ranges).
  9. Flag decisions you cannot make alone. Anything sticky with more than one defensible answer — grain, conform-vs-distinct, source_system_id, PII handling, a name — is an AskUserQuestion, not a silent default and not a line in an open-questions list.
  10. Write the plan to specs/<source-name>-integration-plan.md.

Output format

# <Source> Integration Plan
## 1. Source overview            (system, owner, volume, refresh cadence, source_system_id)
## 2. Demand → gold objects      (the questions, the objects that answer them)
## 3. Entity classification      (table | class | grain | verdict | evidence)
## 4. Conformed dimension mapping (FK | dimension | resolve mode | evidence)
## 5. New dimensions             (per dim: key, surrogate, columns with reasons, excluded)
## 6. Fact tables                (per fact: grain, merge key, FKs, measures, cluster_by, excluded)
## 7. Bronze layer               (table | watermark | lookback | pk | notes)
## 8. Silver layer               (renames, casts, dedup, expectations)
## 9. Dependency graph           (bronze → silver → gold task order)
## 10. Deployment                (compute, schedule, backfill strategy)
## 11. Test plan                 (invariants per table)
## 12. Decisions taken           (each sticky call and who made it)
## 13. Deferred / skipped        (with the pull-forward trigger for each deferred item)

Rules

  • Never create a dimension the registry already has.
  • Every fact has a source business key as its merge key and at least one conformed FK.
  • Percentages are stored as 0–1 fractions. Durations carry their unit in the name.
  • Bronze is a faithful copy; silver cleans; gold models.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.