AgentSkillsCN

Sdlc Import

将 Foundry 托管代理部署至 Azure。当用户请求部署、发布、推送、上线或交付托管代理时使用此技能。触发条件包括 azd deploy、azd up、az cognitiveservices agent create、部署至 Azure、推送代理、发布代理。适用场景:azd deploy、azd up、部署代理、推送代理、发布代理、az cognitiveservices agent create、部署至 Azure、上线代理、交付代理。切勿用于:创建新项目(使用 foundry-hosted-agents-create)、测试代理(使用 foundry-hosted-agents-test)、修复部署错误(使用 foundry-hosted-agents-troubleshoot)、学习基础知识(使用 foundry-hosted-agents-quickstart)。调用:run_in_terminal 用于 az/azd 命令,aitk-list_foundry_models 用于查找 ACR。对于单一操作:若用户已掌握所有参数,可直接运行 az cognitiveservices agent create。

SKILL.md

SKILL: sdlc-import

Version: 2.0.0 Status: Active Category: Automation Phase: 0 (Preparation) Agent: sdlc-importer


Purpose

Reverse engineer existing codebases (not necessarily legacy - can be modern projects without SDLC artifacts) and automatically generate complete SDLC Agêntico documentation structure.

Key Capabilities:

  • Detect 30 programming languages and frameworks (v2.0.0 - expanded from 10)
  • Extract 5-15 architecture decisions with confidence scores
  • Generate 3-5 architecture diagrams (Mermaid + DOT)
  • Perform STRIDE threat modeling
  • Identify 10-50 tech debt items (P0-P3 prioritized)
  • Create complete .project/ structure (respects settings.json configuration)
  • Auto-create feature branch before analysis

Design Principles

Hybrid Approach (per ADR-022):

  1. Pattern Extraction - Static analysis using regex/AST parsing
  2. LLM Synthesis - Claude Opus for ambiguous decisions (confidence < 0.5)
  3. Plugin Integration - claude-plugins-official for production-grade analysis

Read-Only Analysis:

  • Never modifies source code
  • Only creates .project/ documentation (configurable via settings.json)

Configuration Over Code:

  • All thresholds in YAML files
  • Extensible pattern libraries
  • Output directory respects settings.json configuration

Usage

bash
# Basic usage
/sdlc-import /path/to/project

# With options
/sdlc-import /path/to/project --skip-threat-model --no-llm

# Create GitHub issues for P0 debt
/sdlc-import /path/to/project --create-issues

# Custom branch name
/sdlc-import /path/to/project --branch-name feature/import-my-project

Options:

  • --skip-threat-model - Skip STRIDE analysis
  • --skip-tech-debt - Skip debt detection
  • --no-llm - Disable LLM synthesis (faster, lower cost)
  • --create-issues - Create GitHub issues for P0 debt and HIGH threats
  • --branch-name - Custom branch name (default: auto-generated)

Components

ScriptPurpose
project_analyzer.pyMain orchestrator
language_detector.pyLanguage/framework detection (LSP plugins)
decision_extractor.pyADR inference engine
architecture_visualizer.pyDiagram generation (Mermaid/DOT)
threat_modeler.pySTRIDE analysis (security-guidance plugin)
tech_debt_detector.pyTech debt scanner (code-review plugin)
documentation_generator.pyOutput generation
confidence_scorer.pyConfidence calculation

Outputs

Output Directory Configuration:

The skill respects settings.json configuration for output location.

Priority order:

  1. .claude/settings.jsonsdlc.output.project_artifacts_dir (default: .project)
  2. import_config.ymlgeneral.output_dir (fallback, deprecated)
  3. Default: .project

Created Files:

code
.project/                          ← Default (configurable)
├── corpus/nodes/decisions/
│   ├── ADR-INFERRED-001.yml
│   ├── ADR-INFERRED-002.yml
│   └── ...
├── security/
│   └── threat-model-inferred.yml
├── architecture/
│   ├── component-diagram.mmd
│   ├── dependency-graph.dot
│   └── data-flow.mmd
└── reports/
    ├── tech-debt-inferred.md
    └── import-report.md

IMPORTANT: Never write to .agentic_sdlc/ - this directory is for framework files only.


Quality Gate

Gate: sdlc-import-gate.yml

Validation Checks:

  • Branch created (feature/import-*)
  • Overall confidence >= 0.6
  • Minimum 3 ADRs extracted
  • Zero CRITICAL threats
  • Minimum 2 diagrams generated

Supported Technologies (v2.0.0)

30 languages, frameworks, and tools across multiple categories:

Programming Languages (14):

  • Python, JavaScript, TypeScript, Java, C#, Go, Ruby, PHP, Rust, Kotlin
  • NEW: C++, Gradle (build scripts), Dart (Flutter), Swift (iOS)

Backend Frameworks:

  • Django, Flask, FastAPI, Spring, ASP.NET, Express, NestJS, Gin, Rails, Laravel, Symfony, Actix, Ktor
  • NEW: CMake, Conan, vcpkg, Boost, Tokio, async-std

Frontend Frameworks:

  • React, Angular, Next.js
  • NEW: Vue.js, Svelte, Tailwind CSS

Mobile Frameworks:

  • NEW: React Native, Flutter, SwiftUI/UIKit, Jetpack Compose, Xamarin

Infrastructure as Code:

  • Terraform, Kubernetes
  • NEW: Bicep (Azure), Ansible

Configuration Management:

  • NEW: Chef, Puppet

CI/CD Tools:

  • GitHub Actions, GitLab CI
  • NEW: Jenkins

Testing Frameworks:

  • pytest, jest, junit, mocha
  • NEW: Selenium (multi-language), Playwright (multi-language)

Build Tools:

  • NEW: Vite, Webpack

Disambiguation Features:

  • Chef vs Ruby detection (via metadata.rb marker)
  • Ansible vs YAML detection (via ansible.cfg marker)
  • Gradle vs Kotlin detection (file-based)

Integration

claude-plugins-official Plugins:

  • LSP Plugins - Deep language analysis
    • Original: pyright-lsp, typescript-lsp, jdtls-lsp, csharp-lsp, gopls-lsp, rust-analyzer-lsp
    • NEW (v2.0.0): clangd-lsp (C++), dart-lsp (Flutter), sourcekit-lsp (Swift)
  • security-guidance - Vulnerability scanning, STRIDE templates
  • code-review - Code quality, tech debt detection
  • claude-md-management - ADR/README generation
  • pr-review-toolkit - GitHub issue creation

awesome-copilot Patterns:

  • reverse-project-analysis.prompt
  • architecture-blueprint-generator.prompt
  • language-stack-identifier.prompt
  • threat-model-generator.prompt
  • code-gap-audit.prompt

References


Version History

  • v1.0.0 (2026-01-23) - Initial implementation