# Update Extension Patch

> Update an extension patch for a PR-related bug instead of editing patched output directly

- **Type:** Skill
- **Install:** `agentstack add skill-mondaycom-duckdb-claude-update-extension-patch`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mondaycom](https://agentstack.voostack.com/s/mondaycom)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [mondaycom](https://github.com/mondaycom)
- **Source:** https://github.com/mondaycom/duckdb-claude/tree/main/skills/update-extension-patch

## Install

```sh
agentstack add skill-mondaycom-duckdb-claude-update-extension-patch
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Update Extension Patch for PR-Related Bug

Only follow this flow when the bug is in an extension and is related to the current PR. Update the patch file rather than modifying already-patched generated output.

## Step 1: Identify the extension

Find the relevant extension config file in `.github/config/extensions/` and note:
- The extension repository URL
- The pinned commit hash (tag)
- Whether `APPLY_PATCHES` is already set

## Step 2: Clone the extension repository

```bash
git clone  /tmp/
```

## Step 3: Enable patching if needed

If the extension config does not already have `APPLY_PATCHES`, add it to the config file at `.github/config/extensions/`.

## Step 4: Check out the pinned commit

In the cloned extension repository:
```bash
cd /tmp/
git checkout 
```

Use the pinned commit hash found in Step 1.

## Step 5: Apply all existing patches

Apply every existing patch from `.github/patches/extensions/` for this extension, in order:
```bash
git apply /path/to/duckdb/.github/patches/extensions//.patch
```

Make sure all existing patches apply cleanly before proceeding.

## Step 6: Make the required code changes

Edit the code in the cloned extension to fix the bug.

## Step 7: Generate a new patch

```bash
git diff > /path/to/duckdb/.github/patches/extensions//fix.patch
```

## Step 8: Verify

Review the generated patch to confirm it contains only the intended changes. Replace the existing patch file if updating an existing fix, or add the new patch file if it's a new fix.

## Important

- Always apply all existing patches before making changes, so the new patch layers correctly.
- The patch must be generated against the pinned commit with all prior patches applied.
- Do not edit patched output files directly — always update the patch source.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mondaycom](https://github.com/mondaycom)
- **Source:** [mondaycom/duckdb-claude](https://github.com/mondaycom/duckdb-claude)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mondaycom-duckdb-claude-update-extension-patch
- Seller: https://agentstack.voostack.com/s/mondaycom
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
