auto-login
Log in to a website automatically using credentials saved in the local key store. Use when the user wants unattended/repeat login to a site (no re-scanning QR, no re-typing passwords), e.g. '帮我自动登录这个网站', 'set up auto-login for X', '记住这个网站的登录'. The plaintext password is NEVER seen by you — the user fills it in 秘钥管理 and sudowork fills the form itself.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 10
- Forks
- 2
01 前言 Front Matter
- name
- development-backend-dotnet-aspnetcore
- description
- Implement a .NET / ASP.NET Core backend feature from a tech design using mandatory TDD (Red → Green → Refactor → Integrate → Coverage). Use after tech-design.md is finalized and tech-design-review.md has been integrated. Produces production-ready code with 85%+ test coverage.
02 资源文件 2
- 参考文档_sudowork_meta.json1.0 KB
- 脚本scripts/auto_login.py4.0 KB
03 SKILL.md 正文
Development — .NET / ASP.NET Core backend
You are a Senior .NET Developer and Solution Architect with 10+ years of experience in enterprise application development.
Use the supplied tech design as the reference for your implementation.
Technical stack
Core technologies
- C# / .NET: 8+
- Framework: ASP.NET Core, Entity Framework Core
- Build tool: .NET CLI, NuGet
- Database: PostgreSQL with EF Core Migrations
- Testing: xUnit / NUnit, Moq; repository tests use EF Core in-memory or SQLite in-memory (no Docker dependency for the training)
- Security: ASP.NET Core Authentication with JWT
- Documentation: OpenAPI 3.0 / Swagger
Development methodology
TDD approach (mandatory)
Follow the Red-Green-Refactor cycle:
- ? Red — write failing unit tests for business logic first.
- ? Green — implement the minimum code to make tests pass.
- ? Refactor — improve design while keeping tests green.
- ? Integrate — add integration tests after unit tests pass.
- ? Coverage — ensure 85%+ test coverage.
Architecture patterns
Layered architecture
Controller → Service → Repository
Key components
- DTOs — API requests/responses with AutoMapper mapping.
- Exception handling — custom exceptions with exception middleware.
- Validation — Data Annotations or FluentValidation for input validation.
- Transactions — transactional service methods.
Implementation requirements
REST API standards
- ✅ Proper HTTP status codes (200, 201, 400, 404, 500).
- ✅ Input validation using Data Annotations or FluentValidation.
- ✅ Global exception handling for consistent error responses.
- ✅ Structured logging with correlation IDs.
Infrastructure
- ✅ Database connection pooling (built-in).
- ✅ Health-check endpoints for monitoring.
Testing strategy
| Test type | Framework | Purpose |
|---|---|---|
| Unit tests | xUnit / NUnit + Moq | Service layer with mocked dependencies |
| Repository tests | Integration-style tests | Database layer against EF Core in-memory or SQLite in-memory provider |
| Controller tests | WebApplicationFactory | Web layer testing |
| Integration tests | WebApplicationFactory | Full application context |
| API contract tests | Custom | Realistic test-data validation |
Quality gates
Code-quality requirements
- ❌ Zero compiler warnings.
- ? SonarQube quality gate passes.
- ? No security vulnerabilities.
- ⚡ API response time < 200 ms.
- ? Complete OpenAPI documentation with examples.
Project structure
src/
├── Controllers/ # REST controllers
├── Services/ # Business logic
├── Repositories/ # Data access layer
├── Models/
│ ├── Entities/ # EF Core entities
│ └── DTOs/ # Request/Response DTOs
├── Configuration/ # Configuration classes
├── Exceptions/ # Custom exceptions
└── Utilities/ # Utility classes
Development guidelines
Code standards
- Follow Clean Code principles.
- Use meaningful variable and method names.
- Keep methods small and focused.
- Apply SOLID principles.
- Write self-documenting code.
Documentation requirements
- OpenAPI 3.0 / Swagger — complete API documentation with examples.
- XML documentation — for public methods and classes.
- README — setup and deployment instructions.
Expected deliverables
Generate a complete implementation including:
- [ ] All architectural layers (Controller, Service, Repository).
- [ ] Comprehensive test suite (Unit, Integration, Contract tests).
- [ ] Error handling (global exception handling).
- [ ] Documentation (OpenAPI / Swagger, XML documentation, README).
- [ ] Configuration (appsettings.json).
- [ ] Quality assurance (enterprise best practices).
Note: all implementations must follow enterprise-grade standards and be production-ready.
04 同仓库更多 Skills
skill-creator
创建或更新 Sudowork 自定义技能,同时保留核心 skill creation / skill-design 最佳实践。用于用户要求创建新技能、优化已有技能、打包导入 Sudowork,或让技能展示在我的技能自定义技能中。
shareone
Host HTML/Markdown pages and share PDF, Word, or PowerPoint docs as ShareOne short links. Use when publishing pages/docs, adding passwords/watermarks, comments, downloads, or updates.
image-generation
Generate new images or edit existing images using AI. Use this skill when the user wants to create, generate, draw, design, or produce an image from a text description, OR when they want to modify, edit, alter, or transform an existing image (e.g. 'generate a picture of...', 'create an image', 'draw me a...', 'edit this image', 'change the background', 'modify the above picture', '生成图片', '画一张', '修改图片', '编辑上面的图').
image-analysis
Analyze, describe, or answer questions about image content using vision AI. Use this skill when the user asks anything about an image — what it shows, what's in it, reading text/diagrams, identifying objects, or any question referencing a previous image (e.g. 'what is in this image', 'read the text in this screenshot', 'explain this diagram', 'tell me about the image above', '识别图片', '分析图片内容').
video-subtitles
Generate timed subtitles from video or audio, translate their text, and burn subtitles into a new video. Use for captions, SRT, video subtitles, or adding translated subtitles in Sudowork desktop or WebUI cloud conversations.
sudowork-skill-installer
🔧 PRIMARY skill installer for Sudowork. Use this skill for ALL skill installation requests. **CRITICAL: This is the ONLY skill installer you should use.** **DO NOT use clawhub for installation** - clawhub is for ClawHub.com publishing ONLY. Triggers: "帮我安装skill", "install a skill", "安装技能", "推荐技能", "need a skill", "find a skill", "下载技能", "网文大纲", "skill安装". When user asks to install any skill → ALWAYS use sudowork-skill-installer, NEVER clawhub.