Documentation
¶
Index ¶
- Constants
- func DraftSkillBody(name, description, procedure string) string
- func FormatList(proposals []Proposal) string
- func FormatProposal(p Proposal) string
- func SuggestSkillName(focus, fallback string) string
- type Config
- type Meta
- type Proposal
- type ScanResult
- type Store
- func (s *Store) Create(ctx context.Context, skillName, body, source, sessionID, focus string, ...) (Proposal, error)
- func (s *Store) List(ctx context.Context) ([]Proposal, error)
- func (s *Store) Load(ctx context.Context, id string) (Proposal, error)
- func (s *Store) PendingCount(ctx context.Context) (int, error)
Constants ¶
View Source
const ( StatusPending = "pending" StatusApplied = "applied" StatusRejected = "rejected" KindCreate = "create" KindUpdate = "update" )
Variables ¶
This section is empty.
Functions ¶
func DraftSkillBody ¶
DraftSkillBody builds a minimal SKILL.md from session notes.
func FormatList ¶
FormatList renders pending proposals for CLI.
func SuggestSkillName ¶
SuggestSkillName derives a skill name from focus or session text.
Types ¶
type Config ¶
type Config struct {
Mode string `json:"mode"` // off, propose, auto
MaxPending int `json:"maxPending"`
SkillsDir string `json:"skillsDir"` // workspace-relative, default local:skills
}
Config controls Skill Workshop behavior.
func (Config) Normalized ¶
type Meta ¶
type Meta struct {
ID string `json:"id"`
Kind string `json:"kind"`
SkillName string `json:"skillName"`
Status string `json:"status"`
Source string `json:"source"`
SessionID string `json:"sessionId,omitempty"`
Focus string `json:"focus,omitempty"`
Autonomous bool `json:"autonomous,omitempty"`
CreatedAt time.Time `json:"createdAt"`
AppliedAt time.Time `json:"appliedAt,omitempty"`
RejectedAt time.Time `json:"rejectedAt,omitempty"`
ScanCritical []string `json:"scanCritical,omitempty"`
}
Meta describes one workshop proposal.
type Proposal ¶
Proposal is meta + markdown body.
type ScanResult ¶
ScanResult is the outcome of a proposal safety scan.
type Store ¶
type Store struct {
FS filesystem.Service
Root string
}
Store manages proposals under work/skills/.workshop/. Root is a filesystem.Service-relative directory; paths are slash-joined.
Click to show internal directories.
Click to hide internal directories.