vscode-extensions-5-custom-snippets

Sub-skill of vscode-extensions: 5. Custom Snippets.

5 stars

Best use case

vscode-extensions-5-custom-snippets is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of vscode-extensions: 5. Custom Snippets.

Teams using vscode-extensions-5-custom-snippets should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/5-custom-snippets/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/operations/devtools/vscode-extensions/5-custom-snippets/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/5-custom-snippets/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How vscode-extensions-5-custom-snippets Compares

Feature / Agentvscode-extensions-5-custom-snippetsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of vscode-extensions: 5. Custom Snippets.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 5. Custom Snippets

## 5. Custom Snippets


```jsonc
// snippets/python.json
// Location: ~/.config/Code/User/snippets/python.json
{
    "Python Main Block": {
        "prefix": "main",
        "body": [
            "def main():",
            "    ${1:pass}",
            "",
            "",
            "if __name__ == \"__main__\":",
            "    main()"
        ],
        "description": "Python main block"
    },
    "Python Class": {
        "prefix": "class",
        "body": [
            "class ${1:ClassName}:",
            "    \"\"\"${2:Class description.}\"\"\"",
            "",
            "    def __init__(self, ${3:args}):",
            "        ${4:pass}",
            "",
            "    def ${5:method}(self):",
            "        ${6:pass}"
        ],
        "description": "Python class definition"
    },
    "Python Dataclass": {
        "prefix": "dataclass",
        "body": [
            "from dataclasses import dataclass",
            "",
            "",
            "@dataclass",
            "class ${1:ClassName}:",
            "    \"\"\"${2:Description.}\"\"\"",
            "",
            "    ${3:field}: ${4:str}"
        ],
        "description": "Python dataclass"
    },
    "Python Type Hints": {
        "prefix": "typed",
        "body": [
            "def ${1:function_name}(",
            "    ${2:param}: ${3:str}",
            ") -> ${4:None}:",
            "    \"\"\"${5:Description.}\"\"\"",
            "    ${6:pass}"
        ],
        "description": "Typed function signature"
    },
    "Python Pytest Test": {
        "prefix": "test",
        "body": [
            "def test_${1:name}():",
            "    # Arrange",
            "    ${2:pass}",
            "",
            "    # Act",
            "    ${3:result = None}",
            "",
            "    # Assert",
            "    assert ${4:result is not None}"
        ],
        "description": "Pytest test function"
    },
    "ABOUTME Comment": {
        "prefix": "aboutme",
        "body": [
            "# ABOUTME: ${1:Brief description of file purpose}",
            "# ABOUTME: ${2:Additional detail about what the file does}"
        ],
        "description": "ABOUTME file header comment"
    }
}
```

```jsonc
// snippets/typescript.json
{
    "React Functional Component": {
        "prefix": "rfc",
        "body": [
            "interface ${1:ComponentName}Props {",
            "  ${2:prop}: ${3:string};",
            "}",
            "",
            "export function ${1:ComponentName}({ ${2:prop} }: ${1:ComponentName}Props) {",
            "  return (",
            "    <div>",
            "      ${4:content}",
            "    </div>",
            "  );",
            "}"
        ],
        "description": "React Functional Component with TypeScript"
    },
    "React useState Hook": {
        "prefix": "usestate",
        "body": [
            "const [${1:state}, set${1/(.*)/${1:/capitalize}/}] = useState<${2:string}>(${3:''});"
        ],
        "description": "React useState hook with TypeScript"
    },
    "React useEffect Hook": {
        "prefix": "useeffect",
        "body": [
            "useEffect(() => {",
            "  ${1:// effect}",
            "",
            "  return () => {",
            "    ${2:// cleanup}",
            "  };",
            "}, [${3:dependencies}]);"
        ],
        "description": "React useEffect hook"
    },
    "TypeScript Interface": {
        "prefix": "interface",
        "body": [
            "interface ${1:InterfaceName} {",
            "  ${2:property}: ${3:type};",
            "}"
        ],
        "description": "TypeScript interface"
    },
    "TypeScript Type": {
        "prefix": "type",
        "body": [
            "type ${1:TypeName} = {",
            "  ${2:property}: ${3:type};",
            "};"
        ],
        "description": "TypeScript type alias"
    },
    "Async Function": {
        "prefix": "asyncfn",
        "body": [
            "async function ${1:functionName}(${2:params}): Promise<${3:void}> {",
            "  try {",
            "    ${4:// implementation}",
            "  } catch (error) {",
            "    console.error(error);",
            "    throw error;",
            "  }",
            "}"
        ],
        "description": "Async function with error handling"
    }
}
```

Related Skills

cowork-plugin-customizer

5
from vamseeachanta/workspace-hub

Customize or personalize a Codex plugin for a specific organization's tools and workflows by replacing placeholders and configuring MCP servers.

customer-research

5
from vamseeachanta/workspace-hub

Investigate customer questions through multi-source research with confidence scoring and citations

vscode-extensions-git-workflow-integration

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: Git Workflow Integration (+1).

vscode-extensions-7-profile-management

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 7. Profile Management.

vscode-extensions-6-workspace-configuration

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 6. Workspace Configuration.

vscode-extensions-4-keybindings-configuration

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 4. Keybindings Configuration.

vscode-extensions-3-language-specific-settings

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 3. Language-Specific Settings.

vscode-extensions-2-settings-configuration

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 2. Settings Configuration.

vscode-extensions-1-extension-management

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 1. Extension Management (+2).

vscode-extensions-1-essential-extensions-by-category

5
from vamseeachanta/workspace-hub

Sub-skill of vscode-extensions: 1. Essential Extensions by Category.

raycast-alfred-6-keyboard-shortcuts-and-snippets

5
from vamseeachanta/workspace-hub

Sub-skill of raycast-alfred: 6. Keyboard Shortcuts and Snippets.

raycast-alfred-2-raycast-typescript-extensions

5
from vamseeachanta/workspace-hub

Sub-skill of raycast-alfred: 2. Raycast TypeScript Extensions.