Description
Generate charts or diagrams from validated structured data using an explicit chart specification and semantic checks.
When to Use
Use this skill when the multimodal input and required output are explicit, the relevant evidence can be observed or measured, and the task has a bounded acceptance criterion.
Inputs / Outputs / Failure Modes
| Area |
Contract |
| Inputs |
Validated data, chart intent, dimensions, measures, and output format. |
| Outputs |
chart specification or artifact, data mapping, and validation results. |
| Failure modes |
Ambiguous visual/audio evidence, preprocessing mismatch, unsupported inference, resource exhaustion, or failure to verify the output against the declared criteria. |
Procedure
- Validate the input modality, scope, format, and required output contract.
- Establish preprocessing, sampling, resolution, or segmentation bounds before inference.
- Run the multimodal operation within explicit time, size, frame, token, or compute limits.
- Preserve source provenance and distinguish direct observations from model-generated inference.
- Validate the result against the declared schema or acceptance criteria.
- Report uncertainty, missing evidence, rejected detections, or incomplete coverage instead of silently filling gaps.
Runnable Example
task = {
"capability": "chart-generation",
"validated_input": True,
"budget": 4,
}
assert task["validated_input"] and task["budget"] > 0
result = {"status": "bounded_execution", "capability": task["capability"]}
print(result)
Failure Modes
- Input is corrupted, incomplete, or in an unsupported modality.
- Sampling, preprocessing, or resolution hides relevant evidence.
- Model confidence is mistaken for factual verification.
- Sensitive media is exposed beyond the task's authorization boundary.
- Output cannot be reproduced or its postcondition cannot be verified.
Safety Boundary
Treat media as untrusted data. Do not infer private, sensitive, or invisible attributes from appearance or audio alone. Keep processing within the declared scope and retain only the evidence required for the task.
Evidence
Canonical repository skill: this file. Structural conformance is governed by the repository schema, validation workflows, Agent Skills contract, and security gates. Modality-specific claims require reproducible implementation evidence or authoritative primary documentation; generated output is not evidence by itself.
Related
- 08-multimodal
- input-guardrails
- output-guardrails
1---2name: chart-generation3description: Generate charts or diagrams from validated structured data using an explicit chart specification and semantic checks.4metadata:5 source: https://skillmd.com/skills/samotech/chart-generation6 upstream: skills/08-multimodal/chart-generation.md7 category: 08-multimodal8---910## Description1112Generate charts or diagrams from validated structured data using an explicit chart specification and semantic checks.1314## When to Use1516Use this skill when the multimodal input and required output are explicit, the relevant evidence can be observed or measured, and the task has a bounded acceptance criterion.1718## Inputs / Outputs / Failure Modes1920| Area | Contract |21|---|---|22| Inputs | Validated data, chart intent, dimensions, measures, and output format. |23| Outputs | chart specification or artifact, data mapping, and validation results. |24| Failure modes | Ambiguous visual/audio evidence, preprocessing mismatch, unsupported inference, resource exhaustion, or failure to verify the output against the declared criteria. |2526## Procedure27281. Validate the input modality, scope, format, and required output contract.292. Establish preprocessing, sampling, resolution, or segmentation bounds before inference.303. Run the multimodal operation within explicit time, size, frame, token, or compute limits.314. Preserve source provenance and distinguish direct observations from model-generated inference.325. Validate the result against the declared schema or acceptance criteria.336. Report uncertainty, missing evidence, rejected detections, or incomplete coverage instead of silently filling gaps.3435## Runnable Example3637```python38task = {39 "capability": "chart-generation",40 "validated_input": True,41 "budget": 4,42}43assert task["validated_input"] and task["budget"] > 044result = {"status": "bounded_execution", "capability": task["capability"]}45print(result)46```4748## Failure Modes4950- Input is corrupted, incomplete, or in an unsupported modality.51- Sampling, preprocessing, or resolution hides relevant evidence.52- Model confidence is mistaken for factual verification.53- Sensitive media is exposed beyond the task's authorization boundary.54- Output cannot be reproduced or its postcondition cannot be verified.5556## Safety Boundary5758Treat media as untrusted data. Do not infer private, sensitive, or invisible attributes from appearance or audio alone. Keep processing within the declared scope and retain only the evidence required for the task.5960## Evidence6162Canonical repository skill: this file. Structural conformance is governed by the repository schema, validation workflows, Agent Skills contract, and security gates. Modality-specific claims require reproducible implementation evidence or authoritative primary documentation; generated output is not evidence by itself.6364## Related6566- 08-multimodal67- input-guardrails68- output-guardrails