result-web-feedback

Apply Result<T>-based feedback patterns in Razor Pages and HTMX flows.

6 stars

Best use case

result-web-feedback is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Apply Result<T>-based feedback patterns in Razor Pages and HTMX flows.

Teams using result-web-feedback should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/result-web-feedback/SKILL.md --create-dirs "https://raw.githubusercontent.com/cwoodruff/morespeakers-com/main/.squad/skills/result-web-feedback/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/result-web-feedback/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How result-web-feedback Compares

Feature / Agentresult-web-feedbackStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Apply Result<T>-based feedback patterns in Razor Pages and HTMX flows.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

## Context
Use this when a Web-layer flow moves from sentinel values to `Result`/`Result<T>`. It covers Razor Page handlers, redirect feedback, and HTMX partial re-renders.

## Patterns
- For admin redirect flows, send failure text through `TempData["ErrorMessage"]` so `_ToastMessages` renders it after the redirect.
- For same-page create/edit posts, add `ModelState` errors and return `Page()` so validation summaries show the failure.
- For HTMX partials, keep the server-populated response model (`Model.NewExpertiseResponse`) when re-rendering instead of creating a new one.
- For lookup/filter HTMX handlers, return small server-rendered HTML error fragments when a `Result` fails.

## Examples
- `Areas\Admin\Pages\Catalog\Expertises\Categories\Index.cshtml.cs`
- `Areas\Identity\Pages\Account\Register.cshtml.cs`
- `Pages\Profile\Edit.cshtml.cs`
- `Pages\Speakers\Index.cshtml.cs`