用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/runceel/ai-dev-template --skill scripting-guide命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Provides up-to-date information about ASP.NET Core 10 and Blazor .NET 10 new features. Use when the user asks about Blazor .NET 10 capabilities, ASP.NET Core 10 features, OpenAPI, Minimal APIs, SignalR, or needs guidance on ASP.NET Core/Blazor .NET 10 specific features.
Design Azure infrastructure using natural language, or analyze existing Azure resources to auto-generate architecture diagrams, refine them through conversation, and deploy with Bicep. When to use this skill: - "Create X on Azure", "Set up a RAG architecture" (new design) - "Analyze my current Azure infrastructure", "Draw a diagram for rg-xxx" (existing analysis) - "Foundry is slow", "I want to reduce costs", "Strengthen security" (natural language modification) - Azure resource deployment, Bicep template generation, IaC code generation - Microsoft Foundry, AI Search, OpenAI, Fabric, ADLS Gen2, Databricks, and all Azure services
Modular Monolith + Clean Architecture の設計ガイド。新しいモジュールの作成、画面の実装、機能追加を行う際には、必ずこのスキルを参照して従ってください。
基于 SOC 职业分类
正在显示 SKILL.md
| name | scripting-guide |
| description | ワンライナーや小規模スクリプトでのデータ処理方法を解説するガイド。Python等で小規模なスクリプトを実行しようとする場合には、必ずこのスキルを参照して従ってください。 |
このスキルは、C# file-based apps を使ってファイルを作らずにデータ処理を行う方法を提供します。
適用バージョン: .NET 10 SDK 以降(C# 14 以降)
コードは 必ずパイプで dotnet run - に渡して実行 してください。
Set-Content や Out-File 等で .cs ファイルを新規作成してから実行する方法は 禁止 です。
優先順位:
dotnet run - に直接パイプして実行する.cs ファイルを dotnet <file>.cs で実行する#:package ディレクティブが必要な場合も、パイプ実行で対応できます(後述の「外部ライブラリを使う場合」を参照)。
PowerShell:
'Console.WriteLine("Hello!");' | dotnet run -
Bash:
echo 'Console.WriteLine("Hello!");' | dotnet run -
PowerShell:
@'
var sum = Enumerable.Range(1, 100).Sum();
Console.WriteLine($"合計: {sum}");
'@ | dotnet run -
Bash:
dotnet run - << 'EOF'
var sum = Enumerable.Range(1, 100).Sum();
Console.WriteLine($"合計: {sum}");
EOF
以下は using 不要で使えます:
System, System.IO, System.Collections.Generic, System.Linq, System.Net.Http, System.Threading, System.Threading.Tasksjson.cs:
using System.Text.Json;
var json = Console.In.ReadToEnd();
var doc = JsonDocument.Parse(json);
Console.WriteLine(doc.RootElement.GetProperty("name"));
実行:
'{"name":"太郎"}' | dotnet json.cs
#:package ディレクティブが必要な場合も、パイプで実行します。ファイルを作成しないでください。
@'
#:package CsvHelper
using CsvHelper;
using System.Globalization;
using var reader = new StreamReader(args[0]);
using var csv = new CsvReader(reader, CultureInfo.InvariantCulture);
var count = csv.GetRecords<dynamic>().Count();
Console.WriteLine($"レコード数: {count}");
'@ | dotnet run - -- data.csv
@'
#:package ClosedXML
using ClosedXML.Excel;
using var workbook = new XLWorkbook(args[0]);
var worksheet = workbook.Worksheet(1);
foreach (var row in worksheet.RowsUsed())
{
Console.WriteLine(row.Cell(1).Value);
}
'@ | dotnet run - -- Employee.xlsx
| 用途 | ディレクティブ | 備考 |
|---|---|---|
| JSON処理 | (不要) | System.Text.Json が標準で利用可能 |
| CSV処理 | #:package CsvHelper | |
| Excel処理 | #:package ClosedXML |
var input = args.Length > 0
? File.ReadAllText(args[0])
: Console.In.ReadToEnd();
Console.WriteLine(input.ToUpper());
使い方:
# ファイルから
dotnet script.cs -- input.txt
# 標準入力から
Get-Content input.txt | dotnet script.cs
try
{
// 処理
}
catch (Exception ex)
{
Console.Error.WriteLine($"エラー: {ex.Message}");
return 1;
}