hana-developer-cli-tool-example vitepress-config-management.instructions.md

hana-developer-cli-tool-example vitepress-config-management.instructions.md is an instructions file for GitHub Copilot from SAP-samples/hana-developer-cli-tool-example. It costs 3,825 tokens per session, scanned B, original, Apache-2.0.

A set of instructions for configuring VitePress, a tool that builds documentation websites from Markdown files.

In plain words
What is it for?
It is for changing VitePress configuration, including sidebars, theme files, Mermaid diagrams, language highlighting, metadata, and GitHub Pages settings.
Why use it?
It helps keep documentation navigation, diagrams, page URLs, search visibility, and deployment settings consistent.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sap-samples/hana-developer-cli-tool-example/vitepress-config-management
Clone the repo
git clone --depth 1 https://github.com/SAP-samples/hana-developer-cli-tool-example

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hana-developer-cli-tool-example vitepress-config-management.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sap-samples/hana-developer-cli-tool-example/vitepress-config-management.svg)](https://agentmods.dev/instructions/sap-samples/hana-developer-cli-tool-example/vitepress-config-management)
Your own site
<a href="https://agentmods.dev/instructions/sap-samples/hana-developer-cli-tool-example/vitepress-config-management"><img src="https://agentmods.dev/badge/instructions/sap-samples/hana-developer-cli-tool-example/vitepress-config-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,825 This file is loaded in full into every session.
When invoked 3,825 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03825 $0.03825
Opus 5 $0.01912 $0.01912
Sonnet 5 $0.00765 $0.00765
Haiku 4.5 $0.00382 $0.00382

Measured 5d ago against content hash 721f99bc77fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

hana-developer-cli-tool-example vitepress-config-management.instructions.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- [ ] Build succeeds without warnings
.github/instructions/vitepress-config-management.instructions.md · 644 lines

How it starts

The opening of the file, as written. The whole thing — 644 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VitePress Configuration Management Guidelines

Use this guide when creating or modifying VitePress configuration files in the docs/.vitepress/ directory.

Scope and Purpose

This guide applies to VitePress documentation site configuration:

  • docs/.vitepress/config.ts - Main site configuration
  • docs/.vitepress/theme/ - Custom theme files
  • docs/.vitepress/components/ - Custom Vue components
  • Build and deployment configurations

Critical Principles

  1. Base URL: Always configure correct base URL for GitHub Pages deployment
  2. Sidebar Structure: Maintain hierarchical, collapsible sidebar navigation
  3. Mermaid Integration: Use withMermaid() wrapper for diagram support
  4. Language Alias: Map custom syntaxes to supported highlighters
  5. SEO Optimization: Include proper meta tags and descriptions
  6. Clean URLs: Enable clean URLs for better user experience
  7. Type Safety: Use TypeScript for configuration

Main Configuration Structure

Template: docs/.vitepress/config.ts

import { defineConfig } from 'vitepress'
import { withMermaid } from 'vitepress-plugin-mermaid'

export default withMermaid(
  defineConfig({
    // Site Metadata
    base: '/repository-name/',
    title: 'Site Title',
    description: 'Site description for SEO',
    lang: 'en-US',
    
    // Features
    cleanUrls: true,
    ignoreDeadLinks: false,  // Set true only if needed
    appearance: 'dark',
    lastUpdated: true,
    
    // Markdown Configuration
    markdown: {
      languageAlias: {
        customLang: 'typescript'
      }
    },
    
    // HTML Head
    head: [
      ['link', { rel: 'icon', href: '/base-path/favicon.ico' }],
      ['meta', { name: 'theme-color', content: '#0092d1' }],
      ['meta', { name: 'og:type', content: 'website' }],
      ['meta', { name: 'keywords', content: 'keyword1, keyword2' }],
    ],

    // Theme Configuration
    themeConfig: {
      logo: '/logo.svg',
      siteTitle: 'Short Title',
      
      // Navigation
      nav: [
        // Navigation items
      ],
      
      // Sidebar
      sidebar: {
        // Sidebar configuration
      },
      
      // Social Links
      socialLinks: [
        { icon: 'github', link: 'https://github.com/...' }
      ],
      
      // Search
      search: {
        provider: 'local'
      },
      
      // Footer
      footer: {
        message: 'Released under the Apache License.',
        copyright: 'Copyright © 2024-present SAP'
      }
    }
  })
)

Read the full file on GitHub · 644 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 644 lines · 3,825 tokens per session scan B 721f99bc77fd

Subscribe to this mod's changes

hana-developer-cli-tool-example vitepress-config-management.instructions.md is an instructions file published in the GitHub repository SAP-samples/hana-developer-cli-tool-example (109 stars, last pushed 2d ago), licensed Apache-2.0. It adds 3,825 tokens to every session, about $0.0191 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.