majiayu000/claude-skill-registry-data/iot-edge-module-majiayu000-claude-skill-registr
Claude Code and agent skill by majiayu000/claude-skill-registry-data
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
This skill should be used when creating a new Azure IoT Edge module. Use when the user requests to scaffold, create, or set up a new edge module. The skill automates module scaffolding, manifest configuration, and shared contract generation with intelligent project structure detection.
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/iot-edge-module-majiayu000-claude-skill-registrSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/iot-edge-module-majiayu000-claude-skill-registr.
IoT Edge Module Scaffolding Skill
This skill automates the creation of new Azure IoT Edge modules. Use this skill to scaffold a complete module structure including source code, Docker configuration, deployment manifests, and shared contracts.
Execution Environment
IMPORTANT: All bash commands MUST use Unix syntax regardless of platform.
- Always use Unix bash syntax (e.g.,
test -d,[ -f ], etc.) - NEVER use Windows CMD syntax (e.g.,
if exist,dir, etc.) - NEVER pipe commands to null (
2>/dev/null,2>nul, etc.) - let all output and errors show naturally - Bash is available on all platforms: native on Linux/macOS, via WSL/Git Bash on Windows
- Python scripts are cross-platform and handle path normalization internally
Communication Guidelines
Be concise and avoid stating obvious or expected behavior:
- Don't explain why assets are in the plugin directory (this is expected)
- Don't describe where script files "should" be located (this is obvious)
- Focus output on actionable information, progress, and actual errors only
- Avoid verbose explanations of normal/expected conditions
When to Use This Skill
Trigger this skill when the user requests to:
- Create a new IoT Edge module
- Scaffold an edge module
- Set up a new module for IoT Edge
- Add a new module to the edge deployment
Prerequisites
Before scaffolding a module, gather the following information from the user:
- Module name (PascalCase, e.g., "DataProcessorModule")
- Module description (brief description of module purpose)
Scaffolding Process
Follow these steps in order to scaffold a new IoT Edge module:
Step 1: Detect or Load Project Structure
Run the project structure detection script to identify existing patterns:
Step 1.5: Verify IoTEdgeModules Folder Structure
Check if the IoTEdgeModules folder exists:
If the detection script couldn't find modules_base_path or it doesn't exist:
Prompt user:
If option 1 selected:
- Create directory structure:
`` src/IoTEdgeModules/ ├── modules/ └── config/ ``
- Update detected configuration with this path
If option 2 selected:
- Prompt: "Enter custom IoTEdgeModules path (e.g., edge/modules/):"
- Validate path is reasonable
- Create directory structure at custom location
- Update detected configuration
If option 3 selected:
- Exit scaffolding with message: "Scaffolding cancelled by user"
What this detects:
- Modules base path (e.g.,
src/IoTEdgeModules/modules) - Contracts project path and name
- Deployment manifests location
- Project namespace
- Container registry URL
- NuGet feed URL (if configured)
Processing the output:
- Parse the JSON output
- If
config_sourceis"saved", use the saved configuration silently - If
config_sourceis"detected", present findings to user for confirmation - If detection fails or user rejects, prompt for each value manually
Confirmation prompt (if detected, not saved):
Display the detected configuration to the user in a clear, readable format:
Then use AskUserQuestion tool to ask for confirmation:
- Question: "Use this detected configuration?"
- Header: "Config"
- Options:
- "Yes, use it" - "Proceed with the detected configuration"
- "Save and use" - "Save this configuration for future modules and use it now"
- "No, customize" - "Manually specify configuration values instead"
If user selects "Save and use":
If user selects "No, customize" or if detection fails, prompt for:
- Project namespace (e.g., "Company.IoT.EdgeAPI")
- Container registry URL (e.g., "myregistry.azurecr.io")
- Modules base path (default: "src/IoTEdgeModules/modules")
- Contracts project name and path (or "none" if not using shared contracts)
Step 2: Gather Module-Specific Information
Ask the user for:
Required:
- Module name (PascalCase)
- Module description
Optional Features:
A. Private NuGet Feed
- Ask: "Does this project require a private NuGet feed? (Yes/No)"
- If Yes and not detected: Prompt for NuGet feed URL
- If Yes and detected: Confirm detected URL or allow override
B. Shared Contracts Project
- If contracts project was detected: Automatically use it for module constants (no prompt needed)
- If not detected: Ask "Do you have a shared contracts project? (Yes/No/Create standalone)"
Step 3: Validate and Normalize Module Names
Convert the user-provided module name to required formats:
ModuleName (PascalCase):
- Remove "Module" suffix if present, then add it back
- Example: "DataProcessor" → "DataProcessorModule"
- Example: "DataProcessorModule" → "DataProcessorModule"
modulename (lowercase):
- Convert ModuleName to lowercase
- Example: "DataProcessorModule" → "dataprocessormodule"
Confirm with user using AskUserQuestion tool:
Present the module details and ask for confirmation:
- Question: "Proceed with creating this module?"
- Header: "Confirm Module"
- Options:
- "Yes, create module" → Continue to Step 4
- "No, use different name" → Go back to Step 2 (gather module name)
Display in the question description:
Do NOT assume "Yes" or proceed without using AskUserQuestion tool and getting explicit user confirmation
Step 4: Create Module Directory Structure
Create the module directory:
Check if directory already exists (MUST use this exact bash syntax):
Note: Do NOT use Windows CMD syntax like if exist. Always use Unix bash syntax as shown above.
- If EXISTS: Ask user "Module directory exists. Overwrite? (Yes/Rename/Cancel)"
- If Rename: Prompt for new name and restart from Step 3
Step 5: Generate Module Files from Templates
Use the template files in assets/ to generate module files with runtime substitutions. The skill generates 11 files total.
Placeholder substitutions:
| Placeholder | Value | Example | |
|---|---|---|---|
{{ModuleName}} | PascalCase module name | DataProcessorModule | |
{{modulename}} | Lowercase module name | dataprocessormodule | |
{{ModuleDescription}} | User-provided description | Processes sensor data | |
{{CONTAINER_REGISTRY}} | Detected or provided registry | myregistry.azurecr.io | |
{{PROJECT_NAMESPACE}} | Detected or provided namespace | Company.IoT.EdgeAPI | |
{{MODULE_CSPROJ_PATH}} | Calculated module csproj path: <modules_base_path>/<modulename>/<ModuleName>.csproj | src/IoTEdgeModules/modules/dataprocessormodule/DataProcessorModule.csproj | |
{{MODULE_PUBLISH_PATH}} | Calculated publish path | src/IoTEdgeModules/modules/dataprocessormodule | |
{{CONTRACTS_PROJECT_REFERENCE}} | Conditional contracts reference | See below | |
{{CONTRACTS_CSPROJ_COPY}} | Conditional Dockerfile COPY | See below | |
{{NUGET_CONFIG_SECTION}} | Conditional NuGet configuration | See below |
Conditional placeholder handling:
A. Contracts Project Reference (`{{CONTRACTS_PROJECT_REFERENCE}}`)
Calculate relative path from module directory to contracts directory:
Example:
- Module at:
src/IoTEdgeModules/modules/mydemomodule/ - Contracts at:
src/Company.IoT.Modules.Contracts/ - Relative path:
../../../Company.IoT.Modules.Contracts - Go up 3 levels:
mydemomodule/→modules/→IoTEdgeModules/→src/ - Then down to:
Company.IoT.Modules.Contracts/
If using shared contracts:
If NOT using shared contracts:
B. Contracts Dockerfile COPY (`{{CONTRACTS_CSPROJ_COPY}}`)
If using shared contracts:
If NOT using shared contracts:
C. NuGet Configuration (`{{NUGET_CONFIG_SECTION}}`)
If using private NuGet feed:
If NOT using private NuGet feed:
Template file mappings:
| Template File | Target File | Notes | |
|---|---|---|---|
template.csproj | <ModuleName>.csproj | Rename to match ModuleName | |
template-module.json | module.json | - | |
template-Program.cs | Program.cs | - | |
template-Service.cs | <ModuleName>Service.cs | Rename to match ModuleName | |
template-GlobalUsings.cs | GlobalUsings.cs | - | |
template-ServiceLoggerMessages.cs | <ModuleName>ServiceLoggerMessages.cs | Rename to match ModuleName | |
template-Dockerfile.amd64 | Dockerfile.amd64 | - | |
template-Dockerfile.amd64.debug | Dockerfile.amd64.debug | - | |
template-.dockerignore | .dockerignore | - | |
template-.gitignore | .gitignore | - | |
template-launchSettings.json | Properties/launchSettings.json | Create Properties/ first |
Processing workflow:
For each template file listed in the table above, process sequentially:
- Read the template file from
assets/ - Replace all placeholders with calculated values
- Write to target location in module directory using the target filename from the table
- Report progress: "✓ Created <filename>"
Process all 11 files one at a time before proceeding to Step 6.
Step 6: Create Shared Contract Constants (Conditional)
If using shared contracts project:
Directory: <contracts_project_path>/<ModuleName>/
File: <ModuleName>Constants.cs
Process:
- Create directory if it doesn't exist
- Read
template-ModuleConstants.cs - Replace placeholders
- Write to contracts project location
If NOT using shared contracts:
Directory: <modules_base_path>/<modulename>/Contracts/
File: <ModuleName>Constants.cs
Process:
- Create
Contracts/folder in module directory - Read
template-ModuleConstants.cs - Replace
{{PROJECT_NAMESPACE}}.Modules.Contractswith just{{ModuleName}}.Contracts - Write to module's Contracts folder
Step 6.5: Create LoggingBuilderExtensions (First Module Only)
This extension method is required for AddModuleConsoleLogging() in Program.cs.
If using shared contracts project:
Check if <contracts_project_path>/Extensions/LoggingBuilderExtensions.cs exists:
- If file exists: Skip this step (already created by previous module)
- If file does NOT exist: Create it
Directory: <contracts_project_path>/Extensions/
File: LoggingBuilderExtensions.cs
Process:
- Create
Extensions/directory if it doesn't exist - Read
template-LoggingBuilderExtensions.cs - Replace
{{PROJECT_NAMESPACE}}placeholder - Write to contracts project Extensions folder
- Report to user: "✓ Created LoggingBuilderExtensions.cs in shared contracts project"
If NOT using shared contracts:
Directory: <modules_base_path>/<modulename>/Extensions/
File: LoggingBuilderExtensions.cs
Process:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevelopment/iot-edge-module-majiayu000-claude-skill-registr/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 4
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 Jul 2026, 4 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/iot-edge-module-majiayu000-claude-skill-registr)