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.
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgentnpx agentmods add skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customizationWrote 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.
[](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/quartz-remove-drafts-customization)<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>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.
| Model | Per session | Once 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 |
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( 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.ts의 filters: [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
},
})
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.
- 3d ago First seen · 597 lines · 0 tokens per session scan A c132fa64ae0d
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…