gcs-lifecycle-policy — Claude Code skill for GCS lifecycle policies
gcs-lifecycle-policy — a skill that handles lifecycle policy work in Google Cloud Storage. It activates on its own when a request mentions gcs or lifecycle policy.
MIT 1 installs ★ 2,935 updated 2026-11-01
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a claude-codeWhat gcs-lifecycle-policy does
This skill covers lifecycle policy tasks in GCS: it walks through steps, writes configs, and checks them against common patterns. It sits inside GCP Skills, a category for Google Cloud work.
Triggers include phrases like "gcs lifecycle policy" or "gcs policy". Tool access is narrow: Read, Write, Edit, and Bash(gcloud:*) — gcloud commands only.
You need a GCP project with gcloud set up before it does anything useful. Output is a generated configuration plus validation notes, and when a config is invalid it tells you which fields to look at.
What it helps with
- generate a lifecycle policy JSON for a bucket
- walk through setting object retention rules
- catch missing fields in a policy config
- apply the policy with gcloud instead of typing commands by hand
Example prompts for the agent
- Help me set up a lifecycle policy for a logs bucket
- Generate a gcs lifecycle policy config and validate it
- Show me how to delete old objects from a bucket with gcs policy
How to install gcs-lifecycle-policy
1Skills CLI (Vercel)
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a claude-code2Manually: put the files in place
~/.claude/skills/gcs-lifecycle-policy/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gcs-lifecycle-policy/
1Skills CLI (Vercel)
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a codex2Manually: put the files in place
.agents/skills/gcs-lifecycle-policy/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a cursor2Manually: put the files in place
.cursor/skills/gcs-lifecycle-policy/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jeremylongshore/tons-of-skills-marketplace skills/14-gcp-skills/gcs-lifecycle-policy2Manually: put the files in place
.github/skills/gcs-lifecycle-policy/SKILL.md1Skills CLI (Vercel)
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a gemini-cli2Platform CLI
gemini skills install https://github.com/jeremylongshore/tons-of-skills-marketplace --path skills/14-gcp-skills/gcs-lifecycle-policyManually: put the files in place
.devin/skills/gcs-lifecycle-policy/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about gcs-lifecycle-policy
How do I install gcs-lifecycle-policy in Claude Code?
Run npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a claude-code. The skill lands at ~/.claude/skills/gcs-lifecycle-policy/SKILL.md.
What does gcs-lifecycle-policy do?
It generates lifecycle policy configs for Google Cloud Storage, suggests steps, and validates output. It activates automatically when you mention gcs lifecycle policy.
What tools can the skill use?
Only Read, Write, Edit, and Bash(gcloud:*). You need gcloud installed and access to a GCP project for it to work.
Source text
SKILL.md · MIT
--- name: gcs-lifecycle-policy description: 'Manage gcs lifecycle policy operations. Auto-activating skill for GCP Skills. Triggers on: gcs lifecycle policy, gcs lifecycle policy Part of the GCP Skills skill category. Use when working with gcs lifecycle policy functionality. Trigger with phrases like "gcs lifecycle policy", "gcs policy", "gcs". ' allowed-tools: Read, Write, Edit, Bash(gcloud:*) version: 1.0.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - gcp - cloud compatibility: Designed for Claude Code --- # Gcs Lifecycle Policy ## Overview This skill provides automated assistance for gcs lifecycle policy tasks within the GCP Skills domain. ## When to Use This skill activates automatically when you: - Mention "gcs lifecycle policy" in your request - Ask about gcs lifecycle policy patterns or best practices - Need help with google cloud platform skills covering compute, storage, bigquery, vertex ai, and gcp-specific services. ## Instructions 1. Provides step-by-step guidance for gcs lifecycle policy 2. Follows industry best practices and patterns 3. Generates production-ready code and configurations 4. Validates outputs against common standards ## Examples **Example: Basic Usage** Request: "Help me with gcs lifecycle policy" Result: Provides step-by-step guidance and generates appropriate configurations ## Prerequisites - Relevant development environment configured - Access to necessary tools and services - Basic understanding of gcp skills concepts ## Output - Generated configurations and code - Best practice recommendations - Validation results ## Error Handling | Error | Cause | Solution | |-------|-------|----------| | Configuration invalid | Missing required fields | Check documentation for required parameters | | Tool not found | Dependency not installed | Install required tools per prerequisites | | Permission denied | Insufficient access | Verify credentials and permissions | ## Resources - Official documentation for related tools - Best practices guides - Community examples and tutorials ## Related Skills Part of the **GCP Skills** skill category. Tags: gcp, bigquery, vertex-ai, cloud-run, firebase
© Jeremy Longshore · MIT · jeremylongshore/tons-of-skills-marketplace