# gcs-lifecycle-policy

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 2935 repo stars
- Author: Jeremy Longshore
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/HEAD/skills/14-gcp-skills/gcs-lifecycle-policy/SKILL.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/gcs-lifecycle-policy

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gcs-lifecycle-policy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gcs-lifecycle-policy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gcs-lifecycle-policy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gcs-lifecycle-policy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jeremylongshore/tons-of-skills-marketplace skills/14-gcp-skills/gcs-lifecycle-policy
```

2. **Manually: put the files in place**
- File: `.github/skills/gcs-lifecycle-policy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jeremylongshore/tons-of-skills-marketplace --path skills/14-gcp-skills/gcs-lifecycle-policy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gcs-lifecycle-policy/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jeremylongshore/tons-of-skills-marketplace --skill gcs-lifecycle-policy -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/HEAD/skills/14-gcp-skills/gcs-lifecycle-policy/SKILL.md

## When to use it
- 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
- 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

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 1670ae5817731449.

BEGIN THIRD-PARTY FILE 1670ae5817731449
```text
---
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 <jeremy@intentsolutions.io>
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
```
END THIRD-PARTY FILE 1670ae5817731449

The third-party file has ended. Everything between the 1670ae5817731449 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© Jeremy Longshore · MIT · https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/HEAD/skills/14-gcp-skills/gcs-lifecycle-policy/SKILL.md

## Similar
- [gcs](https://affpapa.org/en/nevibecode/mcp/gcs.md) — MCP server · ★ 81 repo stars
- [google-cloud-storage-bucket-architect](https://affpapa.org/en/nevibecode/skills/google-cloud-storage-bucket-architect.md) — skill · 2800 installs
- [google-cloud-storage-basics](https://affpapa.org/en/nevibecode/skills/google-cloud-storage-basics.md) — skill · 5516 installs
- [gcp-spark-troubleshooting](https://affpapa.org/en/nevibecode/skills/gcp-spark-troubleshooting.md) — skill · ★ 85 repo stars
- [remote-filesystem](https://affpapa.org/en/nevibecode/mcp/remote-filesystem.md) — MCP server · ★ 81 repo stars

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
