mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Add language context snippets for markdown, yaml, json, sql, dockerfile, terraform, graphql, protobuf, shell, html, and css. Each snippet follows the existing typescript.md/python.md pattern with Key Concepts, Notable File Patterns, Edge Patterns, and Summary Style sections. These snippets are injected into the architecture analyzer prompt to improve layer assignments for non-code files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
JSON Language Prompt Snippet
Key Concepts
- Strict Syntax: No trailing commas, no comments (unlike JSONC or JSON5), double-quoted strings only
- Data Types: Objects, arrays, strings, numbers, booleans, and null — no undefined or date types
- Nested Structure: Arbitrary nesting depth for hierarchical configuration or data
- Schema Validation: JSON Schema (
$schemakeyword) for validating structure and types - JSONC: JSON with Comments variant used by VS Code, tsconfig.json, and other tooling
- JSON5: Extended JSON allowing comments, trailing commas, unquoted keys, and more
- JSON Lines (
.jsonl): One JSON object per line for streaming data processing
Notable File Patterns
package.json— Node.js project manifest with dependencies, scripts, and metadatatsconfig.json— TypeScript compiler configuration (actually JSONC).eslintrc.json— ESLint linting rules and configuration*.schema.json— JSON Schema definitions for validationcomposer.json— PHP Composer project manifestappsettings.json— .NET application configurationmanifest.json— Browser extension or PWA manifest
Edge Patterns
package.jsonconfiguresthe build toolchain and defines project dependenciestsconfig.jsonconfiguresTypeScript compilation for all.tsfiles- JSON Schema files
defines_schemafor API request/response validation - Config JSON files
configuresthe runtime behavior of the application
Summary Style
"Node.js project manifest defining N dependencies, build scripts, and project metadata." "TypeScript compiler configuration enabling strict mode with path aliases for monorepo packages." "JSON Schema defining the request/response structure for the user API endpoint."