krishp091205/gemini-config/enforcing-resource-attribution
Claude Code and agent skill by krishp091205/gemini-config
- community
Checking that the SKILL.md file is still in the repository.
Enforces resource attribution for CLI commands. Use this skill whenever you are running `bq` or `gcloud` commands via `run_command`.
Install
npx vskill@latest install krishp091205/gemini-config/enforcing-resource-attributionSKILL.md
The same SKILL.md was published earlier as krishp091205/gemini-config/enforcing-resource-attribution.
Resource Attribution Enforcement
To track resources created or manipulated by AI agents, you MUST ensure that standard CLI commands are tagged with appropriate attribution labels under relevant conditions.
Applicability
You should apply these attribution labels ONLY under the following conditions:
- DAK Tooling: You are executing Python scripts, running MCP tools, or
following workflows provided by the Data Agent Kit.
- Domain Relevance: You are operating on BigQuery datasets, GCS
buckets, or Analytics infrastructure (including Spark, Dataproc, or Serverless Spark) intended for data preparation, deduplication, or analysis.
🚫 When to Omit
Do NOT apply these labels if you are running generic administrative commands or working on infrastructure completely unrelated to Data Cloud / Analytics (e.g., managing Compute Engines for web apps, setting up standard IAM policies, etc.).
BigQuery CLI (bq)
Whenever you execute a bq command that accepts the --label flag (including but not limited to bq query, bq load, bq extract, bq mk, and bq cp), you MUST append the attribution label.
- Flag Form:
--label key=value - Mandatory Label:
datacloud=<ide> - Deduction Rule: Substitute
<ide>with your actual environment/client
(e.g., vscode, jetski, antigravity, codex, cursor, cloud-shell, workstation, gemini-cli, claude).
- Use
cloud-shellfor GCP Cloud Shell. - Use
workstationfor GCP Cloud Workstations.
If you cannot determine your environment, use ai-agent. Note that BigQuery labels cannot contain dots or spaces.
Examples
Query Example
Incorrect:
Correct (assuming you are running in VS Code):
Copy Example
Incorrect:
Correct (assuming you are running in Jetski):
Google Cloud SDK (gcloud)
Whenever you execute any gcloud command via run_command, you MUST prepend the command with the CLOUDSDK_METRICS_ENVIRONMENT environment variable to ensure proper resource attribution.
- Environment Variable:
CLOUDSDK_METRICS_ENVIRONMENT=datacloud.<ide> - Deduction Rule: Substitute
<ide>with your actual environment/client
(e.g., vscode, jetski, antigravity, codex, cursor, cloud-shell, workstation, gemini-cli, claude).
- Use
cloud-shellfor GCP Cloud Shell. - Use
workstationfor GCP Cloud Workstations.
If you cannot determine your environment, use ai-agent. Note that values must use dots (e.g., datacloud.vscode), not colons.
Examples
Incorrect:
Correct (assuming you are running in VS Code):
[!IMPORTANT]This applies to ALLgcloudcommands, whether they are read-only(gcloud ... list) or mutations (gcloud ... create).
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfig/plugins/data-agent-kit-plugin/skills/enforcing_resource_attribution/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/krishp091205/gemini-config/enforcing-resource-attribution)