Documentation
¶
Index ¶
- func DisplayAdvisory(w io.Writer, r *AdvisoryResult)
- func DisplayBatchSummary(w io.Writer, results []batchSkillResult)
- func DisplayCheckResults(w io.Writer, title string, results []*checks.CheckResult)
- func DisplayImprovement(w io.Writer, section, suggestion string)
- func DisplayIssues(w io.Writer, issues []scoring.Issue)
- func DisplayIterationHeader(w io.Writer, iteration, maxIterations int)
- func DisplayMaxIterations(w io.Writer, currentLevel scoring.AdherenceLevel)
- func DisplayMcp(w io.Writer, r *McpResult)
- func DisplayScore(w io.Writer, sk *skill.Skill, score *scoring.ScoreResult)
- func DisplaySummary(w io.Writer, skillName string, before, after *scoring.ScoreResult, ...)
- func DisplayTargetReached(w io.Writer, level scoring.AdherenceLevel)
- func NewCommand() *cobra.Command
- type Advisory
- type AdvisoryResult
- type AdvisoryScorer
- type LinkIssue
- type LinkResult
- type LinkScorer
- type McpResult
- type McpScorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayAdvisory ¶
func DisplayAdvisory(w io.Writer, r *AdvisoryResult)
DisplayAdvisory shows SkillsBench research-backed advisory findings.
func DisplayBatchSummary ¶
DisplayBatchSummary shows the batch summary table with before/after for each skill.
func DisplayCheckResults ¶
func DisplayCheckResults(w io.Writer, title string, results []*checks.CheckResult)
DisplayCheckResults renders pre-computed check results under a titled section.
func DisplayImprovement ¶
DisplayImprovement shows a suggested improvement.
func DisplayIssues ¶
DisplayIssues lists all issues found.
func DisplayIterationHeader ¶
DisplayIterationHeader shows iteration progress.
func DisplayMaxIterations ¶
func DisplayMaxIterations(w io.Writer, currentLevel scoring.AdherenceLevel)
DisplayMaxIterations shows timeout message.
func DisplayMcp ¶
DisplayMcp shows MCP integration scoring results.
func DisplayScore ¶
DisplayScore shows the current score with issues.
func DisplaySummary ¶
func DisplaySummary(w io.Writer, skillName string, before, after *scoring.ScoreResult, beforeTokens, afterTokens int)
DisplaySummary shows before/after comparison box.
func DisplayTargetReached ¶
func DisplayTargetReached(w io.Writer, level scoring.AdherenceLevel)
DisplayTargetReached shows success message.
func NewCommand ¶
NewCommand returns the `waza dev` sub-command tree.
Types ¶
type Advisory ¶
type Advisory struct {
Check string // check identifier
Message string // human-readable explanation
Kind string // "positive", "warning", or "info"
}
Advisory represents a single SkillsBench advisory finding.
type AdvisoryResult ¶
type AdvisoryResult struct {
Advisories []Advisory
}
AdvisoryResult holds all advisory findings.
type AdvisoryScorer ¶
type AdvisoryScorer struct{}
AdvisoryScorer runs SkillsBench research-backed checks.
func (AdvisoryScorer) Score ¶
func (AdvisoryScorer) Score(sk *skill.Skill) *AdvisoryResult
Score evaluates a skill against SkillsBench research findings.
type LinkIssue ¶
type LinkIssue struct {
Source string // source file (relative to skill dir)
Target string // link target
Reason string // human-readable description
}
LinkIssue describes a single link problem found during validation.
type LinkResult ¶
type LinkResult struct {
BrokenLinks []LinkIssue
DirectoryLinks []LinkIssue
ScopeEscapes []LinkIssue
DeadURLs []LinkIssue
OrphanedFiles []string
TotalLinks int
ValidLinks int
Issues []scoring.Issue
}
LinkResult holds the output from link validation checks.
func (*LinkResult) Passed ¶
func (r *LinkResult) Passed() bool
Passed returns true when no link errors were found.
type LinkScorer ¶
type LinkScorer struct{}
LinkScorer validates links in a skill's markdown files.
func (LinkScorer) Score ¶
func (LinkScorer) Score(sk *skill.Skill) *LinkResult
Score runs link validation on the skill directory.
type McpResult ¶
type McpResult struct {
HasInvokes bool
ToolsTablePresent bool
PrereqsDocumented bool
CliFallbackDescribed bool
NameCollisions []string
Issues []scoring.Issue
SubScore int // 0–4
}
McpResult holds the output from MCP integration checks.