quartz-remove-drafts-customization

quartz-remove-drafts-customization is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 0 tokens per session (6,554 once invoked), scanned A, original, MIT.

A guide for changing Quartz, a static site generator, so pages marked as drafts are left out of the public build.

In plain words
What is it for?
Use it to customize Quartz draft filtering, enforce allowed content states, and keep unpublished Obsidian notes out of a generated website.
Why use it?
It prevents unfinished notes from being published when they use status labels such as draft instead of the frontmatter field Quartz normally checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Gemini CLI.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { QuartzTransformerPlugin } from "../types".

Good fit Use it to customize Quartz draft filtering, enforce allowed content states, and keep unpublished Obsidian notes out of a generated website.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent
agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quartz-remove-drafts-customization

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,554 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.06554
Opus 5 $0.00000 $0.03277
Sonnet 5 $0.00000 $0.01311
Haiku 4.5 $0.00000 $0.00655

Measured 3d ago against content hash c132fa64ae0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

quartz-remove-drafts-customization scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}\n" https://YOUR_DOMAIN/insights/<slug>

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
skills/quartz-remove-drafts-customization/SKILL.md · 597 lines

How it starts

The opening of the file, as written. The whole thing — 597 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: quartz-remove-drafts-customization title: "quartz-remove-drafts-customization — Quartz RemoveDrafts plugin의 status: draft 미인식 fix + default-draft strict hardening (2026-06-02)" description: "Quartz 빌드 시스템의 Plugin.RemoveDrafts()는 frontmatter의 draft: true만 체크함. status: draft나 다른 키로 draft를 표시하는 경우 (Obsidian vault + Quartz 셋업의 흔한 패턴), draft가 public/에 그대로 빌드되어 site에 게시됨. quartz.config.tsfilters: [Plugin.RemoveDrafts()]를 customized filter로 교체해 status === draft도 인식하게 만드는 절차. {{AGENT_NAME}} YOUR_DOMAIN 포함 Quartz 4.x 사용자 모두 영향. 2026-06-02 patch: default-draft strict mode (status field가 없거나 unknown이면 자동 EXCLUDE) + 5-state machine (draft/in_review/polished/published/archived) + wikilink post-EXCLUDE caveat + 'publish' 단수 trap." type: skill space: growth tags: [skill, quartz, draft, content-pipeline, obsidian, YOUR_SITE, state-machine, default-draft-strict] created: 2026-06-01 updated: 2026-06-02 links:

  • "[[skills/content-pipeline/SKILL]]"
  • "[[skills/YOUR_SITE]]"
  • "[[skills/YOUR_PREFIX-content-status-enforcement]]"
  • "[[skills/site-spec-audit]]"
  • "[[skills/filesystem-truth-audit]]"
  • "[[skills/patch-secret-safety]]"
  • "[[@action/gateway/{{AGENT_NAME_LOWER}}-architecture-dataflow]]"
  • "[[@identity/brain/rules]]"---

quartz-remove-drafts-customization

Quartz Plugin.RemoveDrafts() 필터가 custom frontmatter 키 (e.g. status: draft)를 인식하지 못하는 문제의 진단 + fix 절차.

문제 — 2026-06-01 ~ 2026-06-02 incident (2 rounds)

Round 1 (6/1): 명시적 status: draft 누수

content-pipeline이 만든 status: draft 초안 파일들이 검토 없이 YOUR_DOMAIN에 자동 게시됨.

Round 2 (6/2): default-include의 함정 — status field가 없는 파일이 통과됨

6/1 fix 후에도 5/23~5/26 자동 생성 article 4개가 계속 노출됨. status: draft도 아니고 status: publish도 아닌, status field 자체가 없는 파일들이었음. v1 filter의 "default-include (status field 없으면 통과)" 정책이 이 케이스를 못 잡음. Hardening: default-draft strict (status field 없으면 자동 EXCLUDE) — 모든 콘텐트는 pipeline을 거쳐서 publish 명시되어야 라이브.

진짜 원인

Quartz 4.x 기본 RemoveDrafts plugin:

// quartz/plugins/filters/draft.ts (Quartz 4.5.2)
export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({
  name: "RemoveDrafts",
  shouldPublish(_ctx, [_tree, vfile]) {
    const draftFlag: boolean =
      vfile.data?.frontmatter?.draft === true ||
      vfile.data?.frontmatter?.draft === "true"
    return !draftFlag
  },
})

Read the full file on GitHub · 597 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 597 lines · 0 tokens per session scan A c132fa64ae0d

Subscribe to this mod's changes

quartz-remove-drafts-customization is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,554 tokens. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens