project-setup-info-local

作者: microsoft

提供关于如何设置各类项目的信息。适用于根据需求初始化项目并搭建项目框架。

npx skills add https://github.com/microsoft/vscode-copilot-chat --skill project-setup-info-local

How to setup a project

Determine what kind of project the user wants to create, then based on that, choose which setup info below to follow. Only setup a project if the folder is empty or if you've just called the tool first calling the tool to create a workspace.

vscode-extension

A template for creating a VS Code extension using Yeoman and Generator-Code.

Run this command:

npx --package yo --package generator-code -- yo code . --skipOpen

The command has the following arguments:

  • -t, --extensionType: Specify extension type: ts, js, command-ts, command-js, colortheme, language, snippets, keymap, extensionpack, localization, commandweb, notebook. Defaults to ts
  • -n, --extensionDisplayName: Set the display name of the extension.
  • --extensionId: Set the unique ID of the extension. Do not select this option if the user has not requested a unique ID.
  • --extensionDescription: Provide a description for the extension.
  • --pkgManager: Specify package manager: npm, yarn, or pnpm. Defaults to npm.
  • --bundler: Bundle the extension using webpack or esbuild.
  • --gitInit: Initialize a Git repository for the extension.
  • --snippetFolder: Specify the location of the snippet folder.
  • --snippetLanguage: Set the language for snippets.

Rules

  1. Do not remove any arguments from the command. Only add arguments if the user requests them.
  2. Call the tool get_vscode_api with the user's query to get the relevant references.
  3. After the tool get_vscode_api has completed, only then begin to modify the project.

next-js

A React based framework for building server-rendered web applications.

Run this command:

npx create-next-app@latest .

The command has the following arguments:

  • --ts, --typescript: Initialize as a TypeScript project. This is the default.
  • --js, --javascript: Initialize as a JavaScript project.
  • --tailwind: Initialize with Tailwind CSS config. This is the default.
  • --eslint: Initialize with ESLint config.
  • --app: Initialize as an App Router project.
  • --src-dir: Initialize inside a 'src/' directory.
  • --turbopack: Enable Turbopack by default for development.
  • --import-alias <prefix/*>: Specify import alias to use.(default is "@/*")
  • --api: Initialize a headless API using the App Router.
  • --empty: Initialize an empty project.
  • --use-npm: Explicitly tell the CLI to bootstrap the application using npm.
  • --use-pnpm: Explicitly tell the CLI to bootstrap the application using pnpm.
  • --use-yarn: Explicitly tell the CLI to bootstrap the application using Yarn.
  • --use-bun: Explicitly tell the CLI to bootstrap the application using Bun.

vite

A front end build tool for web applications that focuses on speed and performance. Can be used with React, Vue, Preact, Lit, Svelte, Solid, and Qwik.

Run this command:

npx create-vite@latest .

The command has the following arguments:

  • -t, --template NAME: Use a specific template. Available templates: vanilla-ts, vanilla, vue-ts, vue, react-ts, react, react-swc-ts, react-swc, preact-ts, preact, lit-ts, lit, svelte-ts, svelte, solid-ts, solid, qwik-ts, qwik

mcp-server

A Model Context Protocol (MCP) server project. This project supports multiple programming languages including TypeScript, JavaScript, Python, C#, Java, and Kotlin.

Rules

  1. First, visit https://github.com/modelcontextprotocol to find the correct SDK and setup instructions for the requested language. Default to TypeScript if no language is specified.
  2. Use the fetch_webpage tool to find the correct implementation instructions from https://modelcontextprotocol.io/llms-full.txt
  3. Update the copilot-instructions.md file in the .github directory to include references to the SDK documentation
  4. Create an mcp.json file in the .vscode folder in the project root with the following content: { "servers": { "mcp-server-name": { "type": "stdio", "command": "command-to-run", "args": [list-of-args] } } }.
    • mcp-server-name: The name of the MCP server. Create a unique name that reflects what this MCP server does.
    • command-to-run: The command to run to start the MCP server. This is the command you would use to run the project you just created.
    • list-of-args: The arguments to pass to the command. This is the list of arguments you would use to run the project you just created.
  5. Install any required VS Code extensions based on the chosen language (e.g., Python extension for Python projects).
  6. Inform the user that they can now debug this MCP server using VS Code.

python-script

A simple Python script project which should be chosen when just a single script wants to be created.

Required extensions: ms-python.python, ms-python.vscode-python-envs

Rules

  1. Call the tool copilot_runVscodeCommand to correctly create a new Python script project in VS Code. Call the command with the following arguments. Note that "python-script" and "true" are constants while "New Project Name" and "/path/to/new/project" are placeholders for the project name and path respectively.
    {
      "name": "python-envs.createNewProjectFromTemplate",
      "commandId": "python-envs.createNewProjectFromTemplate",
      "args": ["python-script", "true", "New Project Name", "/path/to/new/project"]
    }
    

python-package

A Python package project which can be used to create a distributable package.

Required extensions: ms-python.python, ms-python.vscode-python-envs

Rules

  1. Call the tool run_vscode_command to correctly create a new Python package project in VS Code. Call the command with the following arguments. Note that "python-package" and "true" are constants while "New Package Name" and "/path/to/new/project" are placeholders for the package name and path respectively.
    {
      "name": "python-envs.createNewProjectFromTemplate",
      "commandId": "python-envs.createNewProjectFromTemplate",
      "args": ["python-package", "true", "New Package Name", "/path/to/new/project"]
    }
    

来自 microsoft 的更多技能

oss-growth
microsoft
OSS增长黑客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。在创建使用AzureAIAgentsProvider的持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应时使用。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上设置AI Runway——从裸集群到运行模型。涵盖集群验证、控制器安装、GPU评估、提供商设置和首次部署。适用场景:“设置AI Runway”、“接入AKS集群”、“安装AI Runway”、“airunway设置”、“将模型部署到AKS”、“在AKS上进行GPU推理”、“在AKS上配置KAITO”、“在AKS上运行LLM”、“在AKS上使用vLLM”、“在AKS上设置模型服务”、“AI Runway控制器”。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights对Web应用进行插桩的指南。提供遥测模式、SDK设置和配置参考。适用场景:如何对应用进行插桩、App Insights SDK、遥测模式、什么是App Insights、Application Insights指南、插桩示例、APM最佳实践。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)为浏览器/Web应用添加检测。用于真实用户监控(RUM)——页面视图、点击、AJAX/fetch依赖项、异常、自定义事件,以及与后端OpenTelemetry追踪关联的浏览器端GenAI代理追踪。涵盖SDK加载器脚本和npm设置、框架扩展(React、React Native、Angular)、点击分析、遥测初始化器,以及从浏览器发出的代理/工具/模型跨度所遵循的OTel GenAI语义约定。
devops
azure-ai-anomalydetector-java
microsoft
使用适用于 Java 的 Azure AI 异常检测器 SDK 构建异常检测应用程序。在实现单变量/多变量异常检测、时间序列分析或 AI 驱动的监控时使用。
development
azure-ai-language-conversations-py
microsoft
使用azure-ai-language-conversations Python SDK实现对话语言理解(CLU)。当使用ConversationAnalysisClient分析对话意图和实体、构建NLP功能或将语言理解集成到应用程序中时使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用于机器学习工作区、作业、模型、数据集、计算资源和管道。 触发词:“azure-ai-ml”、“MLClient”、“工作区”、“模型注册表”、“训练作业”、“数据集”。
development