Skip to content

feat: introduce kosli next product for forward-looking docs#237

Draft
dangrondahl wants to merge 4 commits into
mainfrom
kosli_next
Draft

feat: introduce kosli next product for forward-looking docs#237
dangrondahl wants to merge 4 commits into
mainfrom
kosli_next

Conversation

@dangrondahl

Copy link
Copy Markdown
Contributor

Summary

Introduce a second Mintlify Product, Kosli Next, alongside the existing Product surface. Kosli Next is the home for forward-looking content we want customer feedback on, kept clearly separate from what Kosli does today.

  • Restructured config/navigation.json to use a top-level products array. Existing tabs sit under "Product"; "Kosli Next" has direct groups for Concepts and Preview.
  • New content: a Controls concept page and an MCP Server preview page, plus a landing page with light/dark hero images.
  • Shared Callout-based banner snippet (snippets/kosli-next-banner.mdx) carrying the disclaimer and feedback channel for every Kosli Next page. Single source of truth so the feedback channel can be swapped later.
  • Sidebar tag pills (Concept, Preview) recoloured via style.css to match their on-page callouts.
  • .mintlify/AGENTS.md defines retrieval rules, the required disclaimer when citing Kosli Next, and writing rules - applies to the dashboard agent, the @mintlify Slack bot, and the docs site assistant.
  • Repo-local Claude skill at .claude/skills/kosli-next-writer/ plus a pointer from CLAUDE.md, so colleagues writing Kosli Next pages get consistent guidance.
  • No-em-dash rule added to CLAUDE.md and applied across files.
  • Kosli Next link added to the footer.

Test plan

  • mint dev locally - Product switcher shows "Product" and "Kosli Next"; default landing is "Product".
  • Kosli Next sidebar shows Concepts and Preview groups; pages render with their callout and tag pill.
  • Tag pill colours match callout colours (peach for Concept, blue for Preview) in light and dark mode.
  • mint broken-links passes.
  • Ask the dashboard agent a current-product question - answer cites Product only, no disclaimer.
  • Ask a future/preview question - answer cites the Kosli Next page WITH the disclaimer.
@mintlify

mintlify Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
kosli 🟢 Ready View Preview May 22, 2026, 12:34 PM
Add a second Mintlify Product, "Kosli Next", alongside the existing
"Product" surface, for content that is not yet available in Kosli.
Kosli Next has two tabs:

- Concepts - ideas we want feedback on; nothing built.
- Preview - opt-in pre-GA features.

Includes:

- Restructured config/navigation.json under a top-level products array.
- New kosli_next/ landing, concepts, and preview seed pages.
- Shared banner snippet (snippets/kosli-next-banner.mdx) carrying the
  disclaimer and feedback channel, so it can be swapped centrally.
- .mintlify/AGENTS.md with retrieval rules, the required disclaimer
  when citing Kosli Next, and writing rules for the @mintlify Slack
  bot and dashboard agent.
- .claude/skills/kosli-next-writer/ for repo-local Claude sessions,
  plus a pointer from CLAUDE.md.
- No-em-dash rule added to CLAUDE.md and applied across the file.
- Kosli Next link added to the footer.
- Collapse Kosli Next from two tabs to direct groups (Concepts, Preview)
  under the product.
- Add the Controls concept page and the MCP Server preview page with
  matching images.
- Switch banners to a Callout component, with peach (Concepts) and blue
  (Preview) colours, and recolour the sidebar tag pills to match via
  data-nav-tag selectors in style.css.
- Add light/dark hero images to the Kosli Next landing page.
- Ignore .DS_Store globally.
@claude

claude Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Claude finished @dangrondahl's task in 2m 24s —— View job


PR Review: Kosli Next Product

  • Read CLAUDE.md and doc-review skill
  • Read all changed content files
  • Check navigation entries for new pages
  • Check for relative links, British spelling, em-dashes
  • Review content quality and structure
  • Post inline comments and summary

Review summary

Good structure overall. The two-product split is clean, the banner snippet is a smart single-source-of-truth pattern, and the MCP Server page is well-written with practical install tabs. A few things to address:

Critical (1)

File Issue
.claude/skills/kosli-next-writer/SKILL.md :46 Wrong navigation paths. The skill tells AI tools to update products[1].tabs[0] / products[1].tabs[1], but Kosli Next uses flat groups, not tabs. Correct paths: products[1].groups[1].pages (Concepts) and products[1].groups[2].pages (Preview). This will cause incorrect nav edits.

Improvements (5)

File Issue
.mintlify/AGENTS.md :7, :12, :30 British spelling: "organised" → "organized", "Behaviour" → "Behavior" (3 occurrences).
kosli_next/index.mdx :16 British spelling: "Behaviour" → "Behavior".
kosli_next/concepts/index.mdx :3 Em-dash () in the front matter description violates the no-em-dash rule added in this PR.
CLAUDE.md The PR adds a no-em-dash rule and replaces some, but ~20 em-dashes remain in unchanged lines (Architecture section lines 34-41, Don'ts lines 94-95, etc.). Consider a full sweep.
CLAUDE.md :36 The Architecture "Content directories" list doesn't include kosli_next/ - worth adding since it's now a first-class content area.

Suggestions (3)

File Issue
snippets/kosli-next-banner.mdx :3, :11 <p /> used as visual separator is semantically an empty paragraph. <br /> would be more conventional.
kosli_next/preview/mcp_server.mdx :30 Link to /getting_started/service-accounts works via redirect. Link directly to /getting_started/authenticating_to_kosli to reduce fragility.
style.css :22 British spelling in comment: "colour" → "color". Minor, but keeps things consistent.

Other observations

  • Orphaned images: 4 images under images/kosli_next/controls/ (controls-compliance-coverage.png, etc.) are still in the branch but no longer referenced after the controls concept page was removed in commit 0426e6c. Consider removing them to avoid dead weight.
  • No relative links found in any Kosli Next content.
  • All new pages are registered in config/navigation.json.
  • The MCP Server preview page is well-structured with clear prerequisites, install instructions across 4 client types, and a limitations section.
Comment thread kosli_next/index.mdx
It contains two kinds of content:

- **Concepts** - ideas and directions we're considering. Nothing here is built yet. We publish them to gather feedback on the problem and the proposed approach.
- **Preview** - real features available to opt-in customers ahead of general availability. Behaviour can still change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "Behaviour" should be "Behavior" per the writing style guide in CLAUDE.md (American spelling enforced by Vale).

Suggested change
- **Preview** - real features available to opt-in customers ahead of general availability. Behaviour can still change.
- **Preview** - real features available to opt-in customers ahead of general availability. Behavior can still change.
Comment thread .mintlify/AGENTS.md

## Project context

Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organised into two Mintlify Products:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "organised" should be "organized" per the CLAUDE.md style guide (American spelling).

Suggested change
Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organised into two Mintlify Products:
Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organized into two Mintlify Products:
Comment thread .mintlify/AGENTS.md
- **`Product`** - documentation for what Kosli does today. This is the default and the authoritative source for "how do I do X" questions.
- **`Kosli Next`** - forward-looking content. Two tabs:
- **Concepts** (`kosli_next/concepts/`) - ideas we're considering. Nothing in here is built.
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behaviour can still change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "Behaviour" should be "Behavior" for consistency with the American spelling rule.

Suggested change
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behaviour can still change.
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behavior can still change.
Comment thread .mintlify/AGENTS.md
Every answer that draws on a page under `kosli_next/` must begin with one of:

- For Concepts: *"This isn't available in Kosli today - it's a concept we're sharing to gather feedback."*
- For Previews: *"This is a preview feature, available to opt-in customers. Behaviour can still change."*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - Same British spelling here: "Behaviour" → "Behavior".

Suggested change
- For Previews: *"This is a preview feature, available to opt-in customers. Behaviour can still change."*
- For Previews: *"This is a preview feature, available to opt-in customers. Behavior can still change."*
Comment thread CLAUDE.md
- No em-dashes. Use hyphens or rewrite the sentence.

## Don'ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - The PR adds a "no em-dashes" rule and replaces some with -, but several em-dashes remain in this Don'ts section (lines 94, 95, 98) and throughout the Architecture section (lines 3, 34-41, 47, 63, 66-69, 80, 87, 104-105). Consider a sweep to clean them all up in this PR since it introduces the rule.

Suggested change
- Don't use relative links - they break when pages move.
- Don't create a page without updating `config/navigation.json` - it won't appear in the site.
@@ -0,0 +1,15 @@
export const ConceptBanner = () => (
<Callout icon="flask" iconType="solid" color="#FFB4AA">
<strong>This is a concept</strong> and not available in Kosli today. We're sharing it to gather your feedback. <p />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion - The <p /> self-closing tag is being used as a visual separator, but it's semantically a self-closing empty paragraph. A <br /> would be more conventional here if the intent is a line break between the two sentences.

## Prerequisites

- Node.js v20 or higher
- A [Kosli API token](/getting_started/service-accounts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion - The link /getting_started/service-accounts works via a redirect to /getting_started/authenticating_to_kosli. Consider linking directly to the canonical path to avoid the redirect hop and reduce fragility.

Suggested change
- A [Kosli API token](/getting_started/service-accounts)
- A [Kosli API token](/getting_started/authenticating_to_kosli)
@@ -0,0 +1,12 @@
---
title: "Concepts"
description: "Ideas and directions we're considering for Kosli. Nothing here is built yet — we publish them to gather feedback."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - Em-dash in the description violates the new no-em-dash rule added in this same PR. Also, consider adding tag: "Concept" to front matter to match the required template in the skill file.

Suggested change
description: "Ideas and directions we're considering for Kosli. Nothing here is built yet we publish them to gather feedback."
description: "Ideas and directions we're considering for Kosli. Nothing here is built yet - we publish them to gather feedback."
Comment thread kosli_next/index.mdx
It contains two kinds of content:

- **Concepts** - ideas and directions we're considering. Nothing here is built yet. We publish them to gather feedback on the problem and the proposed approach.
- **Preview** - real features available to opt-in customers ahead of general availability. Behaviour can still change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "Behaviour" should be "Behavior" per the CLAUDE.md writing style guide (American spelling).

Suggested change
- **Preview** - real features available to opt-in customers ahead of general availability. Behaviour can still change.
- **Preview** - real features available to opt-in customers ahead of general availability. Behavior can still change.
Comment thread .mintlify/AGENTS.md

## Project context

Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organised into two Mintlify Products:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "organised" should be "organized" per the CLAUDE.md style guide (American spelling).

Suggested change
Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organised into two Mintlify Products:
Kosli is a platform for recording changes in software and business processes so customers can prove compliance and maintain security without slowing delivery. The docs site is organized into two Mintlify Products:
Comment thread .mintlify/AGENTS.md
- **`Product`** - documentation for what Kosli does today. This is the default and the authoritative source for "how do I do X" questions.
- **`Kosli Next`** - forward-looking content. Two tabs:
- **Concepts** (`kosli_next/concepts/`) - ideas we're considering. Nothing in here is built.
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behaviour can still change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - British spelling: "Behaviour" should be "Behavior".

Suggested change
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behaviour can still change.
- **Preview** (`kosli_next/preview/`) - real features available to opt-in customers ahead of general availability. Behavior can still change.
Comment thread .mintlify/AGENTS.md
Every answer that draws on a page under `kosli_next/` must begin with one of:

- For Concepts: *"This isn't available in Kosli today - it's a concept we're sharing to gather feedback."*
- For Previews: *"This is a preview feature, available to opt-in customers. Behaviour can still change."*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement - Same: "Behaviour" → "Behavior".

Suggested change
- For Previews: *"This is a preview feature, available to opt-in customers. Behaviour can still change."*
- For Previews: *"This is a preview feature, available to opt-in customers. Behavior can still change."*

Page content goes here.
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical - These navigation paths are wrong. Kosli Next uses flat groups (no tabs), so the correct JSON paths are:

  • Concept pages → products[1].groups[1].pages
  • Preview pages → products[1].groups[2].pages

The current paths reference .tabs[0] and .tabs[1] which don't exist, and would mislead AI tools updating navigation.

Suggested change
- Concept pages → `products[1].groups[1].pages`
- Preview pages → `products[1].groups[2].pages`
Comment thread style.css
/* ─── Kosli Next page tags ─────────────────────────────────────────────────── */
/*
* Recolor the sidebar "Concept" and "Preview" tag pills to match the
* Kosli Next callout colour, so the future-state signal is consistent

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion - British spelling in comment: "colour" → "color" for consistency with the American spelling rule. Minor since it's a CSS comment, but keeps things consistent.

Suggested change
* Kosli Next callout colour, so the future-state signal is consistent
* Recolor the sidebar "Concept" and "Preview" tag pills to match the
* Kosli Next callout color, so the future-state signal is consistent
## Prerequisites

- Node.js v20 or higher
- A [Kosli API token](/getting_started/service-accounts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion - This link works via a redirect. Consider linking directly to the canonical path to avoid the redirect hop and reduce fragility if the redirect is ever removed.

Suggested change
- A [Kosli API token](/getting_started/service-accounts)
- A [Kosli API token](/getting_started/authenticating_to_kosli)
@@ -0,0 +1,15 @@
export const ConceptBanner = () => (
<Callout icon="flask" iconType="solid" color="#FFB4AA">
<strong>This is a concept</strong> and not available in Kosli today. We're sharing it to gather your feedback. <p />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion - The <p /> self-closing tag is being used as a visual separator, but semantically it's an empty paragraph. A <br /> would be more conventional here if the intent is a line break.

(Same on line 11.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant