AGENTS.md
Purpose
This file defines how to write and maintain product documentation insidedocs/.
Use it when creating or updating Mintlify documentation pages for Flipsuite.
Primary goal:
- Keep new docs aligned with the strongest existing references, especially:
docs/quests/introduction.mdxdocs/quests/setup.mdxdocs/points/introduction.mdxdocs/points/setup.mdxdocs/points/conversions.mdxdocs/points/discord-roles.mdx
What good docs look like here
The best docs in this repository are:- Task-oriented
- Written for end users, not implementers
- Structured around real UI flows
- Dense with screenshots, but not screenshot-dependent
- Short on hype, long on clarity
- Start with minimal frontmatter:
title,description,icon - Open with a short orientation paragraph or blockquote
- Walk through the feature in the order a user encounters it
- Use
## Step N - ...headings for setup guides - Use screenshots inside
<Frame>immediately after the text that introduces the UI - Explain terms and options with tight bullet lists
- Link to the next relevant page with a
CardorCardGroup - Use
Tip,Note, andWarningonly for real exceptions, caveats, or constraints
- Marketing language
- Large theory dumps before showing the workflow
- Repeating UI labels in multiple ways
- Explaining implementation details users do not need
- Creating a brand new page structure when an existing pattern already fits
Source references to mirror
Use these pages as canonical references before inventing a format:- Overview/introduction pages:
docs/quests/introduction.mdxdocs/points/introduction.mdx
- Setup guides:
docs/quests/setup.mdxdocs/points/setup.mdx
- Focused feature pages:
docs/points/conversions.mdxdocs/points/discord-roles.mdx
- Repeated reference sections:
docs/quests/tasks/points.mdxdocs/quests/tasks/twitter.mdxdocs/quests/tasks/user-input.mdx
Page types and expected structure
1. Introduction pages
Use for landing pages likequests/introduction and points/introduction.
Preferred structure:
- Frontmatter with
icon,title,description - Hero image or embed
- One short introduction paragraph
##section covering core concepts, capabilities, or key use cases## What's next?section with aCardto the next action
2. Setup guides
Use for pages that help users create or configure something in the dashboard. Preferred structure:- Frontmatter
- Short lead-in blockquote or intro paragraph
- Sequential
## Step N - ...sections - Screenshot
Frameafter each important UI transition - Bullets for field meanings, options, or behaviors
- Small callouts for caveats
- A closing
## Step N - What's next?or## What's next?
3. Focused feature pages
Use for narrower topics like conversions, imports, sharing, moderation, roles, notifications. Preferred structure:- Frontmatter
- Optional opening
Frameif the page centers on one screen - Short explanation of what the feature does
##sections for how it works, how to configure it, and practical usage- One or two screenshots where they clarify the exact UI
4. Reference collections
Use for grouped feature variants like quest task pages or command pages. Preferred structure:- Frontmatter
- Repeated per-item sections using:
## <Icon ... /> Item name- One-sentence description
- Screenshot in
Frame Accordionfor configuration or command arguments- Optional
Note,Tip,Check, orWarning
Writing style
Write for operators and community managers using the product. Use this tone:- Direct
- Concrete
- Calm
- Operational
- “Open the Points tab and click Create point system.”
- “Set the minimum balance required.”
- “Users can convert one balance into another.”
- “Simply”
- “Just” when it understates real work
- Internal engineering language
- Feature claims that are not visible or proven in product
- Prefer short paragraphs
- Prefer bullets when listing fields, options, or outcomes
- Use bold for visible UI labels
- Use inline code for enums, commands, IDs, and literal values
- Keep headings descriptive, not clever
- Use product terminology consistently:
Quests,Point Systems,Flippy,Flipwallets,Discord roles,community dashboard
How to structure explanations
Default order for most user docs:- What this feature is
- Where to find it
- How to configure it
- What happens after setup
- Where to go next
- Put the user-visible field name first in bold
- Explain what it controls in one sentence
- Mention optionality or edge behavior only if relevant
- Match the actual UI order
- Do not jump ahead to advanced options before the base flow is clear
- Keep each step actionable
- Use
Tipfor helpful guidance - Use
Notefor clarifications - Use
Warningfor limits, irreversible actions, permission issues, or easy mistakes
Mintlify component patterns used here
Reuse the existing component patterns already present indocs/.
Frontmatter
Most guide pages use:Frames and screenshots
Use<Frame> for screenshots.
Pattern:
- Add a caption when it helps identify the screen
- Keep image paths rooted at
/images/... - Reuse
className="rounded-lg" - Place the screenshot near the text that introduces that screen
Cards
UseCard or CardGroup to move users to the next relevant page or summarize a small set of related options.
Do not use cards when a normal bullet list is clearer.
Accordions
UseAccordion for repeated configuration schemas, especially:
- quest task configuration
- slash command arguments
- supported file types or option sets
Callouts
Available patterns already used heavily:<Tip><Note><Warning><Check>
Icons in headings
For reference-style pages, follow the existing pattern:Shared snippets
Before writing a custom warning or plan badge, checkdocs/snippets/.
Existing shared snippets include:
required-starter-plan-banner.mdxrequired-pro-plan-banner.mdxrequired-starter-plan-badge.mdxrequired-pro-plan-badge.mdxrole-hierarchy-warning.mdx
Screenshots and asset rules
Follow the current asset organization:- Quest docs:
docs/images/quests/... - Point system docs:
docs/images/points/... - Module docs:
docs/images/modules/<module>/... - Account docs:
docs/images/account/...
- Put new screenshots in the nearest existing folder
- Use descriptive filenames based on the screen or action
- Prefer PNG for static UI screenshots
- Reuse existing images if the UI already matches
- Do not reference missing assets in docs
Navigation and information architecture
docs/docs.json is the source of truth for Mintlify navigation.
Whenever you add, rename, move, or remove a page:
- Update
docs/docs.json - Keep the page in the nearest matching group
- Reuse existing grouping patterns before creating a new section
- Major feature areas are grouped by product capability
- Nested groups are used for collections like
Tasks,Commands,Rules,Guides - Intro/setup pages usually appear before narrower subpages
docs/docs.json first and keep the order intuitive for end users.
Linking rules
Prefer internal links to the next action a user should take. Use:- Markdown links in prose for inline references
CardandCardGroupfor prominent next steps
- Linking from quest rewards setup to
/rewards/introduction - Linking from point roles to
/modules/gating/rules/points - Linking from intro pages to setup guides
Product terminology and naming
Keep naming aligned with the current docs and UI. Use:XorX/Twitteronly when the surrounding page already doesDiscord roles, not arbitrary synonymsPoint system, nottokenorcurrency, unless discussing a specific subtypecommunity dashboardor the exact UI section name if visible to the userquest,task,reward,submission,completionusing the quest docs definitions
Scope control
Make the smallest documentation change that fully solves the task. Before creating a new page, ask:- Can an existing page be extended instead?
- Is there already a nearby page with the same structure?
- Does this belong in a setup guide, a focused feature page, or a reference collection?
- Split content into multiple pages without a navigation reason
- Create duplicate explanations in multiple sections
- Add implementation detail for backend behavior unless users need it to operate the feature
- Rewrite nearby pages for style consistency unless the task requires it
Validation checklist
Before finishing a docs change:- Confirm the page follows a nearby existing pattern
- Confirm links point to real pages
- Confirm image paths point to real assets
- Confirm
docs/docs.jsonwas updated if navigation changed - Confirm terminology matches nearby pages and UI labels
- Skim the rendered MDX structure for obvious formatting issues
docs/ directory where docs.json lives.
Definition of done for docs work
A docs task is complete when:- The content matches the current product behavior
- The page structure matches the nearest existing docs pattern
- Navigation is updated when required
- Images and links resolve correctly
- The change is concise and reviewable
- Any missing screenshots, product ambiguities, or follow-ups are called out explicitly
Default approach for future docs tasks
For any new documentation request indocs/, start by answering:
- Which existing page is the closest structural match?
- Is this an intro page, setup guide, focused feature page, or reference collection?
- Does
docs/docs.jsonneed to change? - Are there existing screenshots or snippets to reuse?
- What is the smallest doc change that gets users unstuck?