Agent skill

smith-ide

IDE path variable mappings for VS Code, Cursor, Kiro, and JetBrains. Use when writing or editing IDE config files or using path variables. Covers variable translation between conceptual and IDE-specific syntax.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/tianjianjiang/smith/tree/main/smith-ide

SKILL.md

IDE Path Variable Mappings

  • Scope: Maps conceptual path variables to IDE-specific syntax
  • Load if: Writing/editing IDE config files (.vscode/, .kiro/, .cursor/) OR using IDE path variables
  • Prerequisites: @smith-principles/SKILL.md, @smith-standards/SKILL.md, @smith-style/SKILL.md

CRITICAL: Variable Translation (Primacy Zone)

Always use conceptual variables in documentation, translate to IDE-specific syntax in configs:

  • $WORKSPACE_ROOT${workspaceFolder} (VS Code) or $PROJECT_DIR$ (JetBrains)
  • $HOME${userHome} (VS Code) or $USER_HOME$ (JetBrains)

Overview

Maps conceptual path variables to IDE-specific syntax. For variable definitions and usage, see @smith-style/SKILL.md#path-references.

Conceptual Variables

Defined in: @smith-style/SKILL.md#path-references

For path variable definitions ($WORKSPACE_ROOT, $REPO_ROOT, $HOME) and usage patterns, see @smith-style/SKILL.md#path-references.

IDE Syntax Mappings

VS Code-Based IDEs (VS Code, Cursor, Kiro)

Syntax: ${variableName}

Common Variables:

  • ${workspaceFolder} — Workspace root directory
  • ${userHome} — User home directory
  • ${env:VAR} — Environment variable
  • ${config:key} — Settings value

Mappings:

  • $WORKSPACE_ROOT${workspaceFolder}
  • $REPO_ROOT${env:REPO_ROOT} or ${workspaceFolder}/../../../../
  • $HOME${userHome}

Multi-root workspaces: Use ${workspaceFolder:folderName} for specific folders

Configuration:

  • VS Code/Cursor: .vscode/settings.json
  • Kiro: .kiro/settings/mcp.json (workspace) or ~/.kiro/settings/mcp.json (global)

Note: Kiro is VS Code-based (Code OSS fork) and inherits VS Code configuration system.

JetBrains IDEs (PyCharm, IntelliJ IDEA)

Syntax: $MACRO_NAME$

Common Macros:

  • $PROJECT_DIR$ — Project root directory
  • $USER_HOME$ — User home directory

Mappings:

  • $WORKSPACE_ROOT$PROJECT_DIR$
  • $REPO_ROOT$PROJECT_DIR$/../../../../ (or custom path variable)
  • $HOME$USER_HOME$

Configuration: File → Settings → Appearance & Behavior → Path Variables

Best Practices

  1. Documentation: Always use conceptual variables ($WORKSPACE_ROOT, $REPO_ROOT, $HOME)
  2. IDE Configs: Translate to IDE-specific syntax using above mappings
  3. Cross-IDE Compatibility: Prefer environment variables when possible
  4. Security: Use variable references for sensitive values, never hardcode

Reference

ACTION (Recency Zone)

When writing IDE configs:

  1. Use conceptual variables in docs ($WORKSPACE_ROOT)
  2. Translate to IDE syntax in config files
  3. Prefer environment variables for cross-IDE compatibility

Expand your agent's capabilities with these related and highly-rated skills.

tianjianjiang/smith

smith-style

File naming, path standards, and conventional commits. Use when naming files, creating branches, writing commit messages, or setting up new projects. Covers underscore vs hyphen conventions, commit format, and branch naming patterns.

1 0
Explore
tianjianjiang/smith

smith-stacks

Stacked pull request workflows for large features. Use when creating stacked PRs, managing dependent PRs, or rebasing after parent merges. Covers stack creation, merge order, and squash merge handling.

1 0
Explore
tianjianjiang/smith

smith-python

Python development with uv, pytest, ruff, and type hints. Use when writing Python code, running tests, managing Python packages, or working with virtual environments. Covers import organization, type hints, pytest patterns, and environment variables.

1 0
Explore
tianjianjiang/smith

smith-principles

Fundamental coding principles (DRY, KISS, YAGNI, SOLID, HHH). Use when starting any development task, evaluating implementation approaches, or reviewing code quality. Always active as foundation for all development decisions.

1 0
Explore
tianjianjiang/smith

smith-nuxt

Nuxt 3 development patterns including auto-import stubbing for tests, environment variable conventions, and middleware testing. Use when working with Nuxt projects, testing Nuxt components/middleware, or configuring Nuxt environment variables.

1 0
Explore
tianjianjiang/smith

smith-plan

Plan tracking protocol (portable). Progress tracking with checkboxes, iteration workflow, completion/blocker signals. Use when executing multi-step plans, tracking task progress, or working from plan files. IMPORTANT - Always update the plan file after completing tasks.

1 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results