agentleFS
lyczoslyczos/claude-skills/skills/faq-generator/SKILL.md

faq-generator

Skill0 starsChanged 8 months agoMITView on GitHub

Use when generating or updating FAQ knowledge base for wedkowisko.pl - scans project docs, templates, and code to produce categorized Q&A pairs in JSON format for database import

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chapter-content-generator, course-description-analyzer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • vishalsachdevSkill

    chapter-content-generator

    This skill generates comprehensive chapter content for intelligent textbooks after the book-chapter-generator skill has created the chapter structure. Use this skill when a chapter index.md file exists with title, summary, and concept list, and detailed educational content needs to be generated at the appropriate reading level with rich non-text elements including diagrams, infographics, and MicroSims. (project, gitignored)

    Also in 4 projects that use this

  • vishalsachdevSkill

    course-description-analyzer

    This skill analyzes or creates course descriptions for intelligent textbooks by checking for completeness of required elements (title, audience, prerequisites, topics, Bloom's Taxonomy outcomes) and providing quality scores with improvement suggestions. Use this skill when working with course descriptions in /docs/course-description.md that need validation or creation for learning graph generation.

    Also in 4 projects that use this

  • dmccrearySkill

    book-installer

    Installs and configures intelligent-textbook infrastructure - scaffold a brand-new MkDocs Material textbook (init textbook), install any of 41 features (math, mascot, learning graph viewer, Google Analytics GA4, custom 404, kanban board), and generate book metrics. Routes to the appropriate installation guide.

    Also in 3 projects that use this

  • mjunaidcaSkill

    quiz-generator

    ALWAYS generate interactive quizzes using the Quiz component (50 comprehensive questions total). Generates 50 college-level conceptual questions with immediate feedback per question. Quiz component automatically displays 15-20 questions per batch, randomized each retake. Features: immediate feedback after each answer (correct option + explanation + why wrong if incorrect), automatic batch shuffling on retake, no passing/failing threshold, color-coded feedback, theme support. Globally-registered Quiz component handles all UI/UX. Follows ##_chapter_##_quiz.md naming convention. INCLUDES: Automated answer redistribution with intelligent explanation regeneration (consolidates quiz-answer-redistributor functionality).

    Also in 4 projects that use this

  • +8 more from vishalsachdev

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 12 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No arguments = full scan, all categories

    line 12
  2. Distinctive:

    Read these files in order.

    line 18
  3. Very specific:

    Every answer MUST have at least one source_files entry

    line 49
  4. Distinctive:

    Do NOT invent features or details not found in source files

    line 50
  5. Distinctive:

    Do NOT generate only how-to questions.

    line 63
  6. Distinctive:

    Create directory if missing.

    line 77
  7. Distinctive:

    Follow this schema precisely.

    line 81
  8. Very specific:

    Do NOT wrap generated_at in a meta object — it goes at root level

    line 123
  9. Very specific:

    Do NOT use id for category field — use slug

    line 124
  10. Very specific:

    Do NOT use qa for questions array — use questions

    line 125
  11. Very specific:

    Do NOT use arbitrary ID prefixes like ogl-1 or og-1 — use the category slug: wystawianie-001, ogolne-001

    line 126
  12. Very specific:

    Do NOT skip zero-padding in IDs — 001 not 1

    line 127
  13. Very specific:

    Do NOT add extra top-level fields like version, platform, language, description

    line 128
  14. Distinctive:

    Do NOT strip Polish diacritics — use proper characters: ą, ć, ę, ł, ń, ó, ś, ź, ż (e.g., "wysłanie" not "wyslanie", "Wysyłka" not "Wysylka")

    line 129
  15. Very specific:

    Do NOT use fancy quotation marks inside JSON strings — the characters „ " " ' ' will break JSON parsing.

    line 130
  16. Distinctive:

    Use EXACTLY these slugs and names:

    line 134
  17. Distinctive:

    After writing the file, run this validation command:

    line 150
  18. Very specific:

    If validation fails, fix the JSON and re-write the file.

    line 156
  19. Distinctive:

    After writing the file, print a summary table:

    line 160
  20. Distinctive:

    Do NOT modify any templates, views, or database

    line 173
  21. Distinctive:

    Do NOT create presentation layer

    line 174

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

FAQ Generator

Generate categorized Q&A pairs for wedkowisko.pl by scanning project files. Output is JSON ready for DB import.

Arguments

  • No arguments = full scan, all categories
  • Category slug = generate only that category (e.g., faq-generator wysylka)
  • --output path/file.json = custom output path (default: docs/faq/faq_generated.json)

Step 1: Read Knowledge Sources

Read these files in order. Skip files that don't exist.

Core docs (always read):

  1. docs/business-logic.md
  2. CLAUDE.md — sections: Data model, Transaction flow, App structure, Implementation status
  3. docs/FEATURES.md
  4. docs/inpost-integration-guide.md
  5. templates/pages/faq.html — existing Q&A as inspiration
  6. templates/pages/terms.html
  7. templates/pages/privacy.html

Per-category code (read only for categories being generated):

CategoryCode files
kontoapps/users/models.py, apps/users/forms.py, apps/users/views.py
wystawianieapps/listings/models.py, apps/listings/forms.py, apps/listings/views.py
zakupapps/orders/models.py, apps/orders/constants.py, apps/orders/views.py, apps/payments/stripe_client.py
sprzedazapps/payments/stripe_client.py, apps/payments/services.py, apps/users/models.py
wysylkaapps/shipping/models.py, apps/shipping/inpost.py, apps/shipping/furgonetka.py
negocjacjeapps/offers/models.py, apps/offers/views.py
zamowieniaapps/orders/models.py, apps/orders/tasks.py, apps/orders/views.py
bezpieczenstwoapps/orders/models.py, apps/core/moderation.py
ogolneNo additional code files

Step 2: Generate Q&A

For each category (or single category if argument provided):

  • Generate 5-15 Q&A pairs
  • Questions must sound like real users asking in Polish
  • Answers must be factual, 1-3 sentences, grounded in information from source files
  • Every answer MUST have at least one source_files entry
  • Do NOT invent features or details not found in source files

Question types (mix required)

Each category MUST include a mix of these 4 types. Not every type applies to every category, but aim for at least 3 types per category.

TypePatternExample
How-to"Jak...?""Jak złożyć ofertę na ogłoszenie?"
Troubleshooting"Co zrobić gdy...?" / problem statement"Płatność nie przeszła — co zrobić?"
Policy/rules"Jakie są zasady...?" / "Czy mogę...?""Jakie przedmioty są zabronione?"
Consequence"Co się stanie jeśli...?""Co się stanie jeśli nie wyślę paczki na czas?"

Do NOT generate only how-to questions. Real users also need troubleshooting, rules, and consequence answers.

Role tagging

Each Q&A MUST include a role field indicating who the question is relevant to:

ValueWhen to use
kupujacyQuestion is from buyer's perspective
sprzedajacyQuestion is from seller's perspective
obieRelevant to both roles (account, general, security)

Step 3: Write JSON

Create directory if missing. Write JSON to output path (overwrites existing file completely).

EXACT JSON Schema

Follow this schema precisely. Do NOT add extra fields, rename fields, or change the structure.

{
  "generated_at": "2026-03-25T14:30:00Z",
  "categories": [
    {
      "slug": "wysylka",
      "name": "Wysyłka",
      "questions": [
        {
          "id": "wysylka-001",
          "question": "Ile mam czasu na wysłanie paczki?",
          "answer": "Masz 3 dni robocze od momentu opłacenia zamówienia. Jeśli nie nadasz paczki w tym czasie, zamówienie zostanie automatycznie anulowane, a kupujący otrzyma zwrot.",
          "role": "sprzedajacy",
          "source_files": ["docs/business-logic.md", "apps/orders/tasks.py"],
          "tags": ["inpost", "termin", "anulowanie"]
        }
      ]
    }
  ]
}

Field rules (MUST follow exactly)

FieldRule
generated_atISO 8601 datetime string at root level, NOT inside a meta object
categoriesArray at root level
categories[].slugField name is slug (NOT id). Use exact slugs from the category table below
categories[].namePolish display name from the category table below
categories[].questionsField name is questions (NOT qa)
questions[].idFormat: {slug}-{NNN} where NNN is zero-padded 3 digits. Example: wysylka-001, konto-003. The prefix MUST match the category slug
questions[].questionNatural language question in Polish
questions[].answerFactual answer, 1-3 sentences, Polish
questions[].roleOne of: kupujacy, sprzedajacy, obie
questions[].source_filesArray of relative file paths that back the answer
questions[].tagsArray of 2-5 lowercase Polish keywords

Common mistakes to AVOID

  • Do NOT wrap generated_at in a meta object — it goes at root level
  • Do NOT use id for category field — use slug
  • Do NOT use qa for questions array — use questions
  • Do NOT use arbitrary ID prefixes like ogl-1 or og-1 — use the category slug: wystawianie-001, ogolne-001
  • Do NOT skip zero-padding in IDs — 001 not 1
  • Do NOT add extra top-level fields like version, platform, language, description
  • Do NOT strip Polish diacritics — use proper characters: ą, ć, ę, ł, ń, ó, ś, ź, ż (e.g., "wysłanie" not "wyslanie", "Wysyłka" not "Wysylka")
  • Do NOT use fancy quotation marks inside JSON strings — the characters „ " " ' ' will break JSON parsing. Use plain single quotes or no quotes instead (e.g., write opcję Cena do negocjacji not opcję „Cena do negocjacji")

Categories

Use EXACTLY these slugs and names:

SlugNameScope
kontoKonto i rejestracjaEmail/SMS verification, profile, account deletion, GDPR
wystawianieWystawianie ogłoszeńCreating listings, photos, AI auto-fill, edit, pause, expiry, promotions
zakupZakupHow to buy, checkout, payment methods (BLIK/card/transfer)
sprzedazSprzedażCommission, payouts, Stripe onboarding, IBAN
wysylkaWysyłkaInPost lockers/courier, tracking, deadlines, Furgonetka oversized
negocjacjeNegocjacjeOffers, counter-offers, expiry, limits
zamowieniaZamówienia i reklamacjeOrder statuses, disputes, refunds, auto-complete, cancellation
bezpieczenstwoBezpieczeństwoEscrow, buyer/seller protection, moderation, reporting
ogolneOgólneWhat is wedkowisko.pl, contact, terms, privacy

Step 4: Validate JSON

After writing the file, run this validation command:

python3 -c "import json; json.load(open('OUTPUT_PATH')); print('JSON valid')"

If validation fails, fix the JSON and re-write the file. Common cause: fancy quotation marks („") inside string values that contain an ASCII " which terminates the JSON string.

Step 5: Report Summary

After writing the file, print a summary table:

| Kategoria | Liczba Q&A |
|-----------|-----------|
| konto     | 8         |
| ...       | ...       |
| TOTAL     | 82        |

Constraints

  • Polish language only
  • Do NOT modify any templates, views, or database
  • Do NOT create presentation layer
  • Overwrite mode only — re-running replaces the file completely
  • Single-category mode writes JSON with only that one category
  • Cross-check all monetary amounts, limits, and deadlines against actual code constants (e.g., MIN_TRANSACTION_AMOUNT in apps/orders/constants.py, SHIPPING_DEADLINE_DAYS, commission rates). Never guess numeric values — grep for the constant and use the exact value from code. If a value is not found in code, check docs/business-logic.md. If still unclear, mark the answer with [VERIFY] for manual review.
  • Answers are for end users, NOT developers. NEVER mention: model/class names (Order, Listing, FAQQuestion), library/framework names (Django, Celery, Stripe Connect, NudeNet, GPT-4o), API names (ShipX API), technical terms (escrow, webhook, PaymentIntent), database concepts, or internal architecture. Use plain language a regular user would understand. Examples:
    • BAD: "System AI (GPT-4o vision) analizuje zdjęcia"
    • GOOD: "System automatycznie rozpoznaje przedmiot na zdjęciu"
    • BAD: "Pieniądze są przechowywane przez Stripe (licencjonowaną instytucję płatniczą)"
    • GOOD: "Pieniądze są bezpiecznie przechowywane do momentu potwierdzenia odbioru"
    • BAD: "filtr wulgarnych słów z wykrywaniem l33t speak, detekcja NSFW (NudeNet)"
    • GOOD: "automatyczny filtr treści i zdjęć"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.