用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/davidortinau/SentenceStudio --skill project-conventions命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
{what this skill teaches agents}
End-to-end testing and verification for SentenceStudio. USE THIS SKILL whenever the user says "test", "verify", "check", "validate", "confirm it works", "smoke test", "run the app and check", "does it work", "try it", "make sure", or any variation of testing a feature or fix in a running app. Also use after EVERY bug fix or feature implementation as a mandatory final verification step — even if you think a build check is enough. Covers: launching via Aspire, interacting with Playwright (webapp) or maui-devflow-debug (native), verifying UI state, checking database records, and reading structured logs. If someone asks you to test anything in this app, or to verify a fix works, or to run a smoke test, or to check that CRUD operations work, or to confirm audio/quiz/import/activity features behave correctly — this is the skill to use. Do NOT skip this skill when verification is needed.
Blocking checklist for any learning activity change. Ensures every prompt/response combination produces target-language learning value. Earned from the 2026-07-15 Vocab Quiz photo-hide-text miss.
基于 SOC 职业分类
正在显示 SKILL.md
| name | project-conventions |
| description | Core conventions and patterns for SentenceStudio |
| domain | project-conventions |
| confidence | high |
| source | codebase-audit-2026-03-26 |
SentenceStudio is a .NET MAUI Blazor Hybrid language learning app. .NET 10 SDK (10.0.101), multi-platform (iOS, Android, Mac Catalyst), with .NET Aspire orchestration.
| Project | Purpose | Build |
|---|---|---|
SentenceStudio.Shared | Core: DbContext, repos, services, models, migrations | Multi-TFM |
SentenceStudio.AppLib | Blazor Hybrid library, Scriban templates | Multi-TFM |
SentenceStudio.UI | Blazor RCL — web pages, components | dotnet build (no -f) |
SentenceStudio.MacCatalyst/iOS/Android | MAUI app heads | -f net10.0-{platform} |
SentenceStudio.Api | ASP.NET Core backend | net10.0 |
SentenceStudio.WebApp | Blazor Server frontend | net10.0 |
SentenceStudio.AppHost | Aspire orchestration | net10.0 |
SentenceStudio.Infrastructure | Server-side persistence (ServerDbContext) | net10.0 |
SentenceStudio.Workers | Background services | net10.0 |
# MAUI (NEVER use dotnet run)
dotnet build -f net10.0-maccatalyst
dotnet build -t:Run -f net10.0-maccatalyst
# UI project (no TFM flag)
dotnet build src/SentenceStudio.UI/SentenceStudio.UI.csproj
# Tests
dotnet test
tests/SentenceStudio.UnitTests, tests/SentenceStudio.IntegrationTests, tests/SentenceStudio.Api.Tests<i class="bi bi-{name}"></i> — NEVER emojis<PageHeader> → <ToolbarActions> → main content with card card-ss<span class="spinner-border spinner-border-sm"><div class="alert alert-{danger|warning|success}">@attribute [Authorize] on protected pages@implements IAsyncDisposableApplicationDbContext — SQLite on mobile, PostgreSQL on serverValueGeneratedNever()dotnet ef migrations add — NEVER hand-write, NEVER raw SQL ALTER TABLEUserProfileIdEnsureCreatedAsync before MigrateAsyncMigrations/ (PostgreSQL), Migrations/Sqlite/ (mobile)src/SentenceStudio.AppLib/Resources/Raw/*.scriban-txtIChatClient (Microsoft.Extensions.AI) via AiService.SendPrompt<T>()[Description] attributes on properties — no [JsonPropertyName]_connectivity.IsInternetAvailable before AI callsIAiGatewayClient for server routingIServiceProviderTask<T>)ILogger<T> for structured loggingWeakReferenceMessenger.Default.Send() for cross-component messaging_serviceProvider.CreateScope() → GetRequiredService<ApplicationDbContext>()_logger.LogError(ex, "context {Field}", value)InvalidOperationException for state violationsArgumentException for invalid argumentsConnectivityChangedMessageActivityTimer.StartSession(activityType, PlanItemId, resourceId, skillId) unconditionally — when PlanItemId is null/empty the service creates a synthetic DailyPlanCompletion with PlanItemId = "adhoc-{guid}" so freeform sessions get duration tracking.activityType string must parse to a PlanActivityType enum value or the ad-hoc row is silently dropped. Valid enum values (see IProgressService.cs): VocabularyReview, Reading, Listening, VideoWatching, Shadowing, Cloze, Translation, Writing, SceneDescription, Conversation, VocabularyGame. NOT valid: VocabularyMatching (use VocabularyGame), HowDoYouSay, WordAssociation, MinimalPairs.ReconstructPlanFromDatabase filters adhoc-* so they don't show up in "Today's Plan"; GetActivityLogAsync includes them so day-detail shows freeform practice with its own "Freeform practice" cluster.ResourceIdParam; VocabQuiz/VocabMatching use plural ResourceIdsParam (comma-separated — take .Split(',').FirstOrDefault() for ad-hoc persistence).Default iteration limit is 1000. Dynamic learning resources ("New Words") can return thousands of unpracticed terms. Any service rendering {{ for t in terms }} must cap the collection before passing to the template — current cap is 40 random words in TranslationService and ClozureService. If adding a new activity that loops vocab, apply the same cap.
VStart() / VEnd() not Top() / Bottom()HStart() / HEnd() not Start() / End()FillAndExpand — legacy patterndotnet run for MAUI apps/docs/ not repo root