Λογότυπο Rsshub Route Authoring Skill

Rsshub Route Authoring Skill

Κοινότητα
AboutRSS
rsshub-route-authoring-skill

Author PR-ready RSSHub routes — namespace.ts, route handler, Radar rules and PR description — that survive code review. Distilled from 2,727 route PRs. Use when asked to write, fix or review an RSSHub route, add an RSS feed for a website via RSSHub, contribute a route to DIYgod/RSSHub, or when working with cheerio selectors, cache.tryGet, parseDate, Radar rules, or the RSSHub PR template. Trigger on RSSHub, RSS route, RSS feed for X, 给 X 做 RSS 订阅, namespace.ts, DataItem. Do not use for deploying RSSHub, debugging runtime errors, tuning cache/config, or non-RSSHub scraping.

Επισκόπηση

ΕκδότηςAboutRSS
Αποθετήριοrsshub-route-authoring-skill
Όνομα δεξιότηταςrsshub-route-authoring-skill
Αστέρια
28
Διακλαδώσεις
0
Συνοδευτικά αρχεία
17
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 17

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό AboutRSS. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Rsshub Route Authoring Skill στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/AboutRSS/rsshub-route-authoring-skill/tree/main
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AboutRSS/rsshub-route-authoring-skill.git \
  .claude/skills/rsshub-route-authoring-skill
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Rsshub Route Authoring Skill σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Rsshub Route Authoring Skill μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Rsshub Route Authoring Skill δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

RSSHub route authoring

Produces route code that can be merged into DIYgod/RSSHub.

Two rules decide almost everything:

  1. Every defensive construct needs a number. .first(), .last(), .trim(), ?? '', a custom User-Agent, a fallback date, a pagination parameter — prove it with a count or delete it.
  2. Read the project's own rules first. They supersede anything remembered from training data, and they change over time. In this order:
    • AGENTS.md in the working directory — the contributor guide, 49 numbered rules

    • .github/prompts/pr_review_rules.md in the RSSHub repo — the 26 rules the auto-review bot enforces:

      bash
      gh api repos/DIYgod/RSSHub/contents/.github/prompts/pr_review_rules.md
    • https://docs.rsshub.app/joinus/ — the narrative docs

Workflow

0. Environment

  • Work inside an RSSHub checkout (a fork is fine). Nothing here works standalone.
  • Install dependencies, then start the dev server on port 1200: pnpm i followed by pnpm dev.
  • pnpm is the package manager. Install it however suits your platform — npm i -g pnpm, brew install pnpm, winget install --id pnpm.pnpm, scoop install pnpm, or the standalone install script. If your shell cannot execute pnpm directly (a common case is a script execution policy on Windows PowerShell), invoke the binary by its full name instead — pnpm.cmd on Windows.
  • Verify the toolchain before writing code: an incomplete install surfaces as an unrelated Cannot find module … during typecheck and blocks every commit.

1. Load the rules

  • AGENTS.md in the working directory — it is the authoritative rule set

  • https://docs.rsshub.app/joinus/ — the narrative docs

  • The auto-review bot's own rule list lives at .github/prompts/pr_review_rules.md in the RSSHub repo — fetch it when you need authoritative wording:

    bash
    gh api repos/DIYgod/RSSHub/contents/.github/prompts/pr_review_rules.md

    It currently holds 26 rules and its numbering changes over time, so match rules by substance rather than by number.

  • If docs.rsshub.app is unreachable from your environment, fetch the Markdown source from the docs repository with gh api instead of the rendered site

2. Confirm the route does not already exist

Search lib/routes/ for the domain before writing anything. If a namespace exists, add to it rather than creating a variant.

3. Analyse the source

  • Prefer an API over HTML; prefer HTML over Puppeteer.
  • Confirm the page is server-rendered before reaching for a browser.
  • Fetch the first page only — never expose pagination parameters, and never add a custom limit (RSSHub has a built-in one).
  • Decode non-UTF-8 responses (iconv-lite for GBK and similar).
  • Check for a structured payload before parsing markup: __NEXT_DATA__ / __NUXT__, application/ld+json, or a WordPress REST API at /wp-json/wp/v2/….
  • Check whether the site already publishes an equivalent feed. If it does, say so before writing the route — see references/anti-patterns.md §0.

4. Write namespace.ts and the route file

ts
import type { Namespace } from '@/types';

export const namespace: Namespace = {
    name: '<site display name>',
    url: 'www.example.com', // no protocol
    lang: '<language code>', // e.g. en, ja, zh-CN
};
ts
import type { Data, Route } from '@/types';
import ofetch from '@/utils/ofetch';

export const route: Route = {
    path: '/<route>/:param?',
    categories: ['<one category>'],
    example: '/<namespace>/<route>/<concrete-value>',
    name: '<route name — must not repeat the namespace name>',
    maintainers: ['<your github handle>'],
    radar: [{ source: ['www.example.com/<path>'], target: '/<route>' }],
    handler,
};

async function handler(): Promise<Data> {
    // …
}

A namespace directory without namespace.ts is not registered at all — it is mandatory.

5. Build items

  • Absolute links: new URL(href, baseUrl).href
  • Wrap detail fetches in cache.tryGet, caching the whole returned object
  • pubDate via parseDate, normalised with timezone(…, <utc offset>) when the source omits timezone information; never new Date(); never an event time (an exhibition opening, a match kickoff) used as the publish time
  • description holds body content only — no duplicated title/author/date, <br> not \n
  • Build markup with JSX + renderToString; embed source HTML with raw() from hono/html; never dangerouslySetInnerHTML

6. Radar

Inline in Route['radar'] — never a separate radar.ts. source has no protocol and keeps the same subdomain as the namespace url; target matches the route path and omits parameters the source URL does not contain.

7. Verify with evidence

This is the step that gets skipped, and it is the one that causes the most review churn. Run scripts/verify-selectors.mjs against the real page and record:

  • how many elements each selector matches per item → justifies or kills .first() / .last()
  • how many items have padded text → justifies or kills .trim()
  • that every link is absolute and unique

Then run scripts/pre-submit-check.mjs, and confirm the feed renders at http://localhost:1200<example>.

8. Submit

Commit as feat(route): …, push, and open the PR by passing the body as a file:

bash
gh pr create --title "feat(route): add <site> <what> route" --body-file /tmp/pr-body.md

Never let the description travel through a rendered view — the template contains a routes fence that collides with any fence wrapped around it, and the result is broken markdown. The title is checked by CI and must be lower-case conventional-commit form; Feat: and feat:add … both fail it. Check both before opening the PR:

bash
node scripts/pre-submit-check.mjs --title "feat(route): add <site> <what> route"

Before using references/pr-template.md, compare it with the template GitHub injects into the new PR form — the official template changes over time, and the injected one is authoritative. See references/pr-template.md for the title rules and the four-backtick fallback when a human has to copy the body by hand.

Opening the PR starts the automated phase; it does not end your work. Continue with step 9.

9. Finish the automated phase

This phase is entirely mechanical, so run it yourself rather than handing back to the user:

  1. Wait for the checks, then read them:

    bash
    gh pr checks
    gh pr view --comments
  2. Fix whatever they report: a Failed ❌ against any path in the routes block, or a rule cited by the auto-review pass.

  3. Commit as a new commit — never amend once a review exists — and push again.

  4. Repeat.

How to tell you are done — and why you must then stop pushing — is in references/review-response.md. Read it there. Do not improvise a test for "clean": the bot's wording has changed more than once and the details matter.

Guardrail: cap the loop and then ask the user. Three fix-and-push cycles is a reasonable default. If the bot is still citing a rule by then, you are guessing rather than fixing, and each further push re-runs the entire suite and buries the maintainer's own notifications — which is precisely what the milestone rule exists to prevent.

A clean automated pass is not a review. Waiting for a maintainer happens on their schedule, so that is where a single session ends. Cleaning up once the PR is settled — deleting the branch, keeping the fork — is also in references/review-response.md.

Before committing

Walk the pre-submit checklist in references/anti-patterns.md, and check references/engineering-traps.md for LF line endings, TypeScript annotations, and branch setup.

After the PR: feedback (opt-in only)

This skill is built from real review feedback, so new feedback is genuinely useful. But:

Never file anything without asking the user first. Do not open issues, do not open pull requests, do not query this repository's issues, and do not make network calls on the user's behalf unless they explicitly ask you to.

Offer feedback at two points only — and never in between.

  1. When the automated phase ends. Only if the auto-review bot cited something that is absent from the rule catalogue in references/anti-patterns.md. A finding the skill already documents is the catalogue working as intended, not a gap — asking about it interrupts a phase you are meant to finish unaided.
  2. Once the PR is settled — merged or closed. By then a maintainer may have raised something, and human feedback is the highest-value signal this skill gets. Reread gh pr view --comments first; the interesting comments are the human ones, not the bot's.

Do not offer feedback while the automated loop is still running. Finish it first.

When you do offer it, the choice is: write it to a local file (e.g. observations/<date>-<topic>.md), report it upstream, or skip it. Only report if they pick that, and say first that the issue will be public and filed under their GitHub account.

For how to report — templates, whether it clears the evidence threshold, and what happens to your issue afterwards — follow CONTRIBUTING.md. That file owns the procedure; do not restate it. Never edit references/anti-patterns.md directly.

References

  • references/anti-patterns.md — 1,987-PR corpus: what gets flagged, with counts
  • references/review-response.md — CI checks, decoding comments, answer templates, after the PR is settled
  • references/engineering-traps.md — line endings, TS annotations, branch setup
  • references/examples.md — copy-paste templates for the API / HTML / Puppeteer strategies
  • references/pr-template.md — PR template and how to fill it (verify before use)
  • tools/ — the pipeline that produced the corpus; for skill maintainers, not for agents

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Rsshub Route Authoring Skill;

Author PR-ready RSSHub routes — namespace.ts, route handler, Radar rules and PR description — that survive code review. Distilled from 2,727 route PRs. Use when asked to write, fix or review an RSSHub route, add an RSS feed for a website via RSSHub, contribute a route to DIYgod/RSSHub, or when working with cheerio selectors, cache.tryGet, parseDate, Radar rules, or the RSSHub PR template. Trigger on RSSHub, RSS route, RSS feed for X, 给 X 做 RSS 订阅, namespace.ts, DataItem. Do not use for deploying RSSHub, debugging runtime errors, tuning cache/config, or non-RSSHub scraping.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Rsshub Route Authoring Skill στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Rsshub Route Authoring Skill είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Rsshub Route Authoring Skill στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/AboutRSS/rsshub-route-authoring-skill/tree/main. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Rsshub Route Authoring Skill;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Rsshub Route Authoring Skill;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Rsshub Route Authoring Skill με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Rsshub Route Authoring Skill;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό AboutRSS με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇