Skip to main content

IdiomarkD Getting Started Guide

Quickstart guide for using IdiomarkD (Idiomark for Developers) to capture and apply developer behavioral profiles.

What is IdiomarkD?​

IdiomarkD extends the Idiomark specifically for developers. It captures:

  • Behavioral Layer: How you approach problems, structure code, name things, handle errors, test, and review code
  • AI Personality Layer: How AI tools should represent you and generate code for you
  • Environmental Layer (optional): Editor preferences like theme, font size

Why IdiomarkD?​

AI-generated code often doesn't "feel like yours" because:

  1. Inconsistent Style: Mixed naming, different comment patterns
  2. Wrong Approach: Functional when you prefer imperative, iterative when you prefer recursive
  3. Missing Context: AI doesn't know your error handling philosophy
  4. Generic Comments: Explanations when you prefer brief, verbose when you prefer detailed

IdiomarkD solves these by providing machine-readable behavioral profiles that AI tools can consume.

Quick Start​

Option 1: Web Playground (Easiest)​

  1. Start the IdiomarkD API server:

    cd packages/idiomarkd-api
    pnpm dev
  2. Visit http://localhost:3000/playground/idiomarkd

  3. Paste code samples and click "Analyze"

Option 2: HTTP API​

curl -X POST http://localhost:4000/api/v1/analyze \
-H "Content-Type: application/json" \
-d '{
"code_samples": [
{
"filePath": "src/utils.ts",
"content": "export function add(a: number, b: number) {\n return a + b\n}",
"language": "typescript"
}
]
}'

Option 3: Create a IdiomarkD Profile​

Option A: Manual Creation

{
"idiomark": "1.1.0",
"profile_type": "developer",
"id": "my-developer-profile",
"metadata": {
"identity": {
"name": "Your Name"
},
"created": "2026-02-13T00:00:00Z",
"updated": "2026-02-13T00:00:00Z",
"sources": ["manual"]
},
"behavioral": {
"cognitive_style": {
"problem_solving": "iterative_refinement",
"learning_style": "experimental",
"documentation_preference": "code_first_comments_selective"
},
"code_structure": {
"functional_preference": 0.8,
"max_function_length": 30,
"complexity_tolerance": "moderate",
"file_organization": "co-located"
},
"naming": {
"philosophy": "descriptive_over_brief",
"conventions": {
"variables": "camelCase",
"types": "PascalCase",
"constants": "UPPER_SNAKE",
"files": "kebab-case"
}
},
"error_handling": {
"philosophy": "graceful_degradation",
"fail_fast": false,
"error_context": "on_error_only",
"logging_level": "warn"
},
"testing": {
"temperament": "pragmatic_not_zealous",
"coverage_threshold": 0.7,
"test_external_dependencies": true,
"mock_strategy": "external_only"
},
"code_review": {
"style": "collaborative_not_adversarial",
"focus_areas": ["architecture", "maintainability", "security"],
"nit_picks": ["inconsistency", "no_tests", "silent_failures"]
}
},
"ai_personality": {
"voice": {
"tone": {
"primary": "professional_but_casual",
"certainty": "confident_with_edges"
},
"formality": 0.6,
"humor": 0.3,
"enthusiasm": 0.7,
"directness": 0.5
},
"code_generation": {
"prefer_patterns_over_raw_code": true,
"include_explanations": "selective",
"comment_style": "why_not_what",
"docstring_preference": "jsdoc"
},
"interaction": {
"question_response_style": "direct_with_options",
"error_communication": "explain_then_fix",
"suggestion_openness": "high_but_skeptical"
}
}
}

Option B: Extract from Your Code

# Using the CLI
idiomark extract:developer --github -u <your-username> -t <your-token> --output my-profile.idiomarkd.json

2. Validate Your Profile​

idiomark validate my-profile.idiomarkd.json

3. Use Your Profile​

VS Code Extension (see VS Code Extension)

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Select "IdiomarkD: Load Profile"
  3. Select your my-profile.idiomarkd.json file
  4. Profile loads and status bar updates

Cursor Integration (see Cursor Integration)

export IdiomarkD_PROFILE=/path/to/my-profile.idiomarkd.json
cursor .

Understanding Your Profile​

Cognitive Style​

ValueDescriptionExample
iterative_refinementBuilds solutions incrementally with loopsGradually improves code with testing
divide_conquerBreaks problems into small modulesClean separation of concerns
mvp_firstGets basic functionality working firstRapid prototyping before refinement
spike_firstExperimental prototypes before implementationProof of concept exploration

Code Structure​

FieldRangeDescription
functional_preference0.0-1.0Higher = more functional (map/filter/reduce)
max_function_lengthAnyAverage function length in lines
complexity_toleranceminimal, moderate, highNesting depth tolerance
file_organizationco-located, domain_driven, layeredHow code files organized

Error Handling​

PhilosophyDescription
graceful_degradationTry-catch with error returns
fail_fastThrows errors immediately
defensiveExtensive validation

Behavioral Dimensions​

1. Cognitive Style​

  • Problem Solving: How do you approach complex problems?
  • Learning Style: How do you learn new technologies?
  • Documentation: Code-first or comments-first?

2. Code Structure​

  • Functional Preference: Imperative vs functional
  • Function Length: Average lines per function
  • Complexity: Minimal, moderate, or high nesting tolerance
  • Organization: Co-located, domain-driven, or layered

3. Naming​

  • Philosophy: Descriptive or efficient?
  • Variables: camelCase, PascalCase, UPPER_SNAKE?
  • Types: Type naming convention
  • Constants: Constant naming convention

4. Error Handling​

  • Philosophy: Approach to errors
  • Fail Fast: Throw immediately or validate first?
  • Error Context: Stack traces or on-error only?
  • Logging: Silent, fatal, error, warn, info, debug?

5. Testing​

  • Temperament: Pragmatic, TDD zealot, or exploratory?
  • Coverage: Target coverage threshold (0.0-1.0)
  • External: Test against real APIs or mock everything?
  • Mocks: External only, mixed, or minimal?

6. Code Review​

  • Style: Collaborative, direct, or mentoring?
  • Focus Areas: What matters most in reviews?
  • Nit Picks: Common issues that trigger comments

AI Personality Layer​

Voice​

  • Tone: Professional, casual, technical, friendly
  • Certainty: Confident with hedges, very certain, or uncertain
  • Formality: 0.0 (casual) to 1.0 (formal)
  • Humor: 0.0 to 1.0
  • Enthusiasm: 0.0 to 1.0
  • Directness: 0.0 to 1.0

Code Generation​

  • Prefer Patterns: Use libraries vs raw code?
  • Include Explanations: Always, selective, or never?
  • Comment Style: Why-focused, what-only, or how-and-why?
  • Docstrings: JSDoc, TSDoc, or none?

Interaction​

  • Questions: Direct with options, socratic, or explanatory?
  • Errors: Explain then fix, just fix, or acknowledge only?
  • Suggestions: High but skeptical, balanced, or conservative?

Validation​

A valid IdiomarkD file must have:

{
"idiomark": "1.1.0",
"profile_type": "developer"
}

Required fields:

  • ✅ metadata with identity
  • ✅ behavioral with all 6 sub-dimensions

Optional fields:

  • ⭕ ai_personality layer
  • ⭕ environmental layer

Confidence Scores​

All analysis includes confidence scores (0.0-1.0):

  • Overall: Average of all dimensions
  • Per-Dimension: Individual confidence for each behavioral dimension

Interpreting Scores:

  • 0.9-1.0: Very confident - clear patterns, abundant evidence
  • 0.7-0.8: Confident - strong patterns, good evidence
  • 0.5-0.6: Moderate - some patterns, limited evidence
  • 0.3-0.4: Low confidence - weak patterns, minimal evidence
  • 0.0-0.2: Very low confidence - no clear patterns, insufficient data

File Structure​

your-project/
├── docs/
│ └── idiomarkd/
│ ├── GETTING_STARTED.md (this file)
│ ├── API_REFERENCE.md
│ ├── FIELD_DEFINITIONS.md
│ └── ...
├── packages/
│ ├── core/
│ │ └── src/
│ │ ├── types-dev.ts (type definitions)
│ │ ├── schemas-dev.ts (Zod schemas)
│ │ ├── validator-dev.ts (validation logic)
│ │ ├── analyzer-dev.ts (behavioral analysis)
│ │ └── integration-dev.ts (platform-agnostic API)
│ ├── cli/
│ │ └── src/
│ │ └── commands/
│ │ └── extract-developer.ts (CLI extraction)
│ ├── adapters/
│ │ └── github/
│ │ └── src/
│ │ ├── index.ts (GitHub adapter)
│ │ └── developer-extractor.ts (code sample fetcher)
│ └── vscode-extension/
│ └── src/
│ └── extension.ts (VS Code extension)

Next Steps​

  1. Create a profile - Use extraction or manual creation
  2. Validate - Verify structure with CLI
  3. Integrate - Use in your editor (VS Code, Cursor, etc.)
  4. Iterate - Refine as you use it

Troubleshooting​

Extraction Fails​

Problem: "No code samples found"

  • Cause: Private repositories or no TypeScript/JavaScript files
  • Fix: Add repo scope to token, check repos have code files

Problem: "GitHub authentication failed"

  • Cause: Invalid or expired token
  • Fix: Generate new token, verify permissions

Validation Errors​

Problem: "Invalid IdiomarkD file"

  • Cause: Missing required fields, wrong enum values
  • Fix: Check profile against schema, fix errors

Integration Issues​

Problem: "Profile not applying in Cursor"

  • Cause: Environment variable not set correctly
  • Fix: Set IdiomarkD_PROFILE full path, restart Cursor

Problem: "Copilot not recognizing profile"

  • Cause: Configuration-only API, limited Copilot features
  • Fix: Use code comments with hints, custom snippets

Resources​

  • Installation Guide - Full Idiomark protocol installation
  • Testing Guide - How to test IdiomarkD
  • API Reference - Complete API documentation
  • Integration Guide - How to integrate with tools
  • Field Definitions - Detailed field explanations

Support​