agentsclimarketplace

Hn sentiment analysis

Skill kissgyorgy/coding-agents/skills/hn-sentiment-analysis

Nix packages, skills, extensions for coding-agents (Claude Code, Gemini CLI, Pi Coding Agent, Codex)

Install
npx -y skills add kissgyorgy/coding-agents --skill hn-sentiment-analysis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Analyze Hacker News thread sentiment from a provided HN thread URL.

SKILL.md

3.9 KB, as published. Nobody here has run it

Hacker News Sentiment Analysis

Analyze a Hacker News thread URL provided through /skill:hn-sentiment-analysis.

Non-negotiable rules

  • Do not write any additional scripts, one-off parsers, notebooks, or ad-hoc data-processing code for this task. The scripts in this skill are the complete analysis pipeline.
  • Do not read thread.json, comments.jsonl, or every chunks/comments-*.md file into context. Large HN threads will overflow the model context.
  • Do not include raw HN item IDs, comment IDs, thread IDs, naked HN URLs, or internal lookup labels in the human-facing final report. Use author names, roles, themes, and short quote snippets instead.
  • If you need a different output directory, review-pack size, or chunk size, rerun the provided script with flags instead of creating new code.

Workflow

  1. Prepare the HN thread artifacts with the provided pipeline:

    python skills/hn-sentiment-analysis/scripts/prepare_hn_sentiment_analysis.py 'https://news.ycombinator.com/item?id=12345678'
    

    The script parses the HN item id, downloads the full nested thread JSON from Algolia, saves it, flattens comments, creates targeted lookup chunks, and generates a bounded review-pack.md for analysis.

  2. Read the generated analysis-brief.md first. Follow its reading order.

  3. Read story.md, fetch the article URL with the fetch tool, and write a very short article summary. If there is no article URL, summarize the HN story text.

  4. Read review-pack.md. This is the primary bounded evidence pack for sentiment analysis.

  5. Read sentiment-worksheet.md as the quality checklist.

  6. Only if needed, read targeted detail files:

    • top-subthreads.md for more detail on engaged subthreads.
    • key-person-candidates.md for possible insiders/authors/maintainers/executives.
    • author-index.md to avoid over-counting prolific authors.
    • chunk-index.md to choose one specific chunks/comments-*.md file for a targeted lookup.

Quality requirements

A good sentiment analysis must:

  • Separate the article summary from HN commenter sentiment.
  • Distinguish sentiment toward the article, topic, product/company/project, implementation details, and HN meta-discussion.
  • Group opinions by theme, not only by positive/negative polarity.
  • Support each major claim with representative authors, roles, or short quote snippets; never with raw numeric HN IDs.
  • Identify key people in the thread, such as the article author, library maintainer, founder, CEO, CTO, developer, employee, or other company/project insiders, and summarize their comments by subthread.
  • Avoid treating reply count as a vote count; use it only as engagement/context.
  • Avoid over-counting prolific authors as multiple independent votes.
  • Separate substantive criticism from jokes, tangents, ideology, bikeshedding, and sarcasm.
  • Call out notable disagreements, minority viewpoints, and uncertainty.
  • Remember that HN commenters are a technical/startup-heavy audience and not representative of the general public.

Output format

Keep the final answer concise and structured:

  • Article summary
  • Overall HN sentiment with confidence level
  • Common opinion groups, with representative authors or short quote snippets
  • Key people and their comments
  • Notable caveats, minority views, and uncertainty

Scripts

  • scripts/prepare_hn_sentiment_analysis.py is the main pipeline. It downloads or loads a thread, writes raw Algolia JSON, and prepares bounded analysis artifacts.
  • scripts/download_hn_thread.py only downloads the complete nested Algolia item JSON for a Hacker News thread URL or item id. Use it directly only when the user specifically asks for the raw JSON.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.