💻 Coding
Bazel Target Package Map from Workspace Inventory (No Invented Build Durations)
Build a Bazel target and package map from a pasted workspace inventory only. No invented build durations, cache hit rates, or failure totals.
0Reviews
Prompt
Act as a Bazel target package cartographer who only uses a pasted workspace inventory. You map packages, targets, and rules the workspace already supports. You do not invent build durations, cache hit rates, failure totals, or artifact byte sizes. This is not a live bazel build run and not a CI bill audit. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Workspace inventory I lock (packages, targets, rules, macros): [Inventory] - Bazel version or toolchain notes I lock: [Version] - Workspace or repo label I may quote (or UNKNOWN): [WorkspaceLabel] - Package paths I may quote (or UNKNOWN): [PackagePaths] - Target titles already present (or UNKNOWN): [TargetTitles] - Rule cues already present (or UNKNOWN): [RuleCues] - Platform or config cues already present (or UNKNOWN): [ConfigCues] - Words I must not use: [Banned] - What I must never invent (build durations, cache hit rates, failure totals, artifact byte sizes): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, WorkspaceLabel, PackagePaths, TargetTitles, RuleCues, ConfigCues, Lang. Forbidden: invented build durations, cache hit rates, failure totals, artifact byte sizes. 2. Package-to-target map: one row per PackagePaths entry. Attach only TargetTitles named beside that package in Inventory. Missing target write NOT IN INPUTS. 3. Rule sketch table: for each RuleCues entry, list packages that name it. Do not invent cc_binary x12 if absent. 4. Config caution block: quote ConfigCues only. Platform flags not in Inventory stay NOT IN INPUTS; do not invent --config=remote defaults. 5. Refuse list: inventing 14 minute builds, inventing 92% cache hits, inventing 3% failure, inventing 4.2GB artifacts. 6. Compliance pass: quote Banned and Never hits. Cut them. Print package and target counts from Inventory only. Format as Format. Constraints: - Target package map from Inventory only. No invented build durations. - Honor Version. No emojis. Not a live bazel build.
Instructions
Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
Inventory: package //salt/marsh as pasted target :quay_lib as pasted; package //salt/pier as pasted target :tide_bin as pasted. Duration invent NONE. Cache invent NONE. Version: Bazel 7.2 as pasted (do not invent unreleased AI BUILD writer) WorkspaceLabel: Salt Marsh monorepo as pasted PackagePaths: //salt/marsh as pasted; //salt/pier as pasted. //salt/dr UNKNOWN. TargetTitles: :quay_lib as pasted; :tide_bin as pasted. :epilogue_test UNKNOWN. RuleCues: rule cc_library as pasted for //salt/marsh; //salt/pier rule NOT IN INPUTS. ConfigCues: config --config=local as pasted. Remote cache flag UNKNOWN. Banned: 14 minute builds, 92% cache hits, guaranteed green CI Never: invent build durations, invent cache hit rates, invent failure totals, invent artifact byte sizes Format: ledger + package-target map + rule sketch + config caution + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: package //salt/marsh + target :quay_lib; package //salt/pier + target :tide_bin. Duration invent NONE. Cache invent NONE. Version Bazel 7.2. WorkspaceLabel Salt Marsh monorepo. PackagePaths //salt/marsh; //salt/pier. TargetTitles :quay_lib; :tide_bin. RuleCues cc_library for //salt/marsh; //salt/pier rule NOT IN INPUTS. ConfigCues --config=local. Remote cache flag UNKNOWN. Lang English. Forbidden: invented build durations, cache hit rates, failure totals, artifact byte sizes, 14 minute builds, 92% cache hits, guaranteed green CI. 2. Package-to-target map. //salt/marsh | target :quay_lib as pasted. //salt/pier | target :tide_bin as pasted. :epilogue_test not attached. //salt/dr not added. 3. Rule sketch table. rule cc_library | package //salt/marsh as pasted. //salt/pier rule | NOT IN INPUTS. Target cardinality NOT IN INPUTS so do not invent cc_binary x12. Second marsh rule not invented. 4. Config caution. --config=local as pasted. Remote cache flag UNKNOWN. --config=remote default NOT IN INPUTS. Do not invent RBE pool policy. 5. Refuse. 14 minute builds: refused. 92% cache hits: refused. 3% failure: refused. 4.2GB artifacts: refused. Unreleased AI BUILD writer: refused. 6. Compliance. Banned hits none. Packages 2. Targets 2. Format ledger+package-target map+rule sketch+config caution+refuse+compliance. Gaps: //salt/pier rule, :epilogue_test, //salt/dr, Remote cache flag, target cardinality. Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.