Analyze article

From ahastudio/til · View interactive version

Analyze article is an AI agent skill from the GitHub repository ahastudio/til. Read a web source — an article OR a non-article (GitHub repo, project homepage, service site) — and write a TIL document (in Korean). The H1 title should read well for Korean readers (Korean preferred, not required). Published pieces (articles, posts, papers, tweets, videos) get a `원문: [원문 제목](URL)`

How to use this skill

Skill file

Read a web source and write a TIL document whose structure follows what the

source is for: analytical when it argues, practical when it teaches.

The output document MUST be written in Korean.

Every section is written in Korean, whichever body structure step 5a selects.

Technical terms may be written alongside their original English form.

Contents

Details live in references/, one level below this file. Read the file a step

points to when you reach that step instead of relying on an earlier read.

Non-negotiables

These hold even if only the top of this file is read. The steps below and the

reference files give the full rules.

Progress checklist

Copy this list into the reply and tick it off per document (a queue repeats it per URL).

- [ ] 1. Fetch the source in full (stop and report if unreadable)
- [ ] 1a. GitHub repository: read `homepage` from the GitHub API, read the site, put it in the header
- [ ] 2. Duplicate check: URL, proper nouns, directory
- [ ] 3-4a. Classify the subject; choose the source line and the fetch method
- [ ] 5-7b. Choose the body structure; write; check header and footnotes
- [ ] 8. Write the file; run the four post-processing commands; last prints OK
- [ ] 9. Run the three reaction skills on the file
- [ ] 10. Run check_format.py again; finished only on OK

Usage

/analyze-article https://example.com/article [security/article-name.md]

under step 8 and ask only when step 8 says to)

Multiple URLs in one invocation

The user often pastes several URLs at once, sometimes each on its own

/analyze-article line. Treat that as a queue, not as an error.

format gate of step 8b, weave community reactions, run the gate again in

step 10 — before starting the next. Do NOT write all summaries first and

circle back.

not printed OK is not finished and does not belong in the summary table.

and continue to the next. A single failure never aborts the queue.

the reason it was skipped.

say so up front with a count, then start working through it in order

rather than waiting for permission.

Procedure

Step numbers below keep the labels other skills and the gate refer to

(2, 4a, 8a, 8b, 9, 10 and so on). A heading that lists several labels covers

all of them.

1. Fetch the source

Fetch the content of the $0 URL with WebFetch.

If WebFetch returns a summary rather than the text, or returns too little to

summarize accurately, fetch again asking for the body verbatim, or retrieve

the page directly and strip the markup. Never write the 요약 section from a

thin summary — numbers, names, and quoted phrasing must come from the actual

text. For sources WebFetch cannot handle, see step 4a and

_agent/skills/web-fetching/SKILL.md.

For a YouTube URL (youtube.com, youtu.be), skip WebFetch entirely and go

straight to yt-dlp as described in step 4a. WebFetch returns only the title.

For a GitHub repository, also resolve and read the project site before writing

(step 4-1 in references/subject-and-source-line.md): the API's homepage

field first, then the README, the org profile and the package manifest. The

site's address goes into the header and the site is read in full.

2. Check for duplicates

Check in this order, and do all three before concluding anything:

  1. Grep the TIL for the source URL itself (and its slug). An existing

document that already cites the URL is a duplicate, full stop.

  1. Grep for distinctive proper nouns from the title and body.
  2. List the likely directory to see whether a differently-named document

covers the same subject.

If a duplicate exists, do NOT skip it and do NOT write a second document on

the same source. Enhance the existing file instead.

Enhancing means: fetch the source again in full, then compare it against the

existing document and add what is missing. Look for content the source

carries that the document never captured, community reactions not yet woven

in, sections the current structure requires but the document lacks, and

passages where the existing text misreads the source — a document written

from a thin fetch often critiques the source for an omission the source does

not actually have. Correct those. Preserve everything already there that is

still accurate, and keep the existing H1 unless the user asks otherwise.

Report which file was enhanced and what was added or corrected.

A near-miss is not a duplicate: a document that merely mentions the subject

(e.g. cites the project in passing) does not block a document about the

source. Say which case it is when reporting.

3, 3-1, 3a, 4. Classify the subject and choose the source-link line

Read references/subject-and-source-line.md

before writing anything. It decides the source-link line and the H1.

원문: [<원문 제목>](<URL>) or its labeled variant, never a bare URL.

<URL> line(s) with no label and no link text. Never 원문:.

product and attributes claims to its maker.

<URL> goes first, the repository's second.

4a. Special source types

Twitter, YouTube, papers, press releases and forum threads each have their own

fetch method and source-line label. Read

references/special-sources.md for any of them.

X, and tweet URLs use twitter.com.

WebFetch.

and what was tried. Never write from a title or from memory.

5, 5a, 6, 7. Choose the body structure and write

Read references/body-structure.md for the

headings and the two templates, and

references/writing-rules.md for the prose rules.

that order. Half of the structure is a defect.

## 비평; it never carries ## 분석 without the other two.

with 한국어(English) for any ambiguous term.

7a, 7b. Keep the document shape and the footnotes exact

Read

references/document-shape-and-footnotes.md

before writing the header and again before finishing.

that order. No other labeled line and no process-report section exists.

get titled footnotes. Comment footnotes are bare permalinks that were

actually observed.

8. Output

If $1 is provided, create the file at that path.

If it is not provided, choose the directory and file name yourself: the

directory that already holds the closest existing documents on the subject,

and a file name that follows step 8a. Do not ask the user to confirm it, and

state the chosen path in the report.

Ask the user only when one of these holds:

document that covers the same source or subject would be overwritten or

duplicated by it.

repository settles which one the user would expect.

In either case ask one short question that names the candidates, then

continue with the answer.

File name rules (step 8a), the four post-processing commands (step 8b) and what

the gate cannot check (step 8c) are in

references/output-and-gate.md. Run the four

commands in this order on every file this skill writes or enhances:

python3 .claude/skills/quotes-curly/scripts/convert_quotes.py <file>
python3 .claude/skills/analyze-article/scripts/fix_code_spans.py <file>
python3 .claude/skills/analyze-article/scripts/align_tables.py <file>
python3 .claude/skills/analyze-article/scripts/check_format.py <file>

The last command must print OK. A FAIL is not advisory: fix the file and

run it again. Do not edit the gate to make a document pass; if the gate seems

wrong about a rule, say so and stop.

9. Community reactions

After the gate prints OK, run hackernews-reactions, lobsters-reactions

and geeknews-reactions on the file, in that order, each with the file path as

the argument, even when no thread is expected. Each search is independent: a

result on one platform says nothing about another. A document is not done until

all three have run with a concrete outcome (comments woven in, or no thread

found). Details and the per-file checklist are in

references/reactions.md.

10. Run the format gate again

The reaction skills edit the header, the body and the footnotes, so run

check_format.py once more after the last one. A document is finished only

when this second run prints OK; in a queue, report only files that reached

it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.