Deep knowledge about the message-path package: path syntax, parsing grammar, data extraction from nested messages, and React hook integration. Shared across Plot, RawMessages, StateTransitions, and general panel agents.
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.github/skills/message-path/SKILL.mdThe message-path package (packages/message-path/) provides a DSL for addressing fields within ROS/Foxglove messages. It's the foundation for user-defined data extraction in multiple panels.
⚠️ Code is split across two locations: parsing/grammar lives in
packages/message-path/src/(e.g.parseMessagePath.ts), but the data-extraction helpers (simpleGetMessagePathDataItems.ts,useCachedGetMessagePathDataItems.ts) live inpackages/suite-base/src/components/MessagePathSyntax/.
/topic.field.nested_field
/topic.field[:]{value==42}
/topic.field[0]
/topic.field.@length/topic_name — selects messages from a topic.field — navigates into message fields[0], [1] — selects specific array element[:] — iterates over all array elements{field_name==value} — filters array elements by field value.@length — returns array length instead of elementsLocated in packages/message-path/src/parseMessagePath.ts:
MessagePath ASTtype MessagePath = {
topicName: string;
topicNameRepr: string;
messagePath: MessagePathPart[];
modifier?: string;
};
type MessagePathPart =
| { type: "name"; name: string; repr: string }
| { type: "slice"; start?: number; end?: number }
| { type: "filter"; path: string[]; value: unknown; repr: string };packages/suite-base/src/components/MessagePathSyntax/simpleGetMessagePathDataItems.ts:
function simpleGetMessagePathDataItems(
messages: MessageEvent[],
path: MessagePath,
): MessagePathDataItem[];{ value, path, constantName? } for each extracted datumpackages/suite-base/src/components/MessagePathSyntax/useCachedGetMessagePathDataItems.ts:
function useCachedGetMessagePathDataItems(paths: string[]): CachedGetMessagePathDataItems;| Panel | How it uses message-path |
|---|---|
| Plot | Extracts numeric time series from messages for each configured path |
| RawMessages | Navigates to specific fields for display/filtering |
| StateTransitions | Extracts discrete state values for timeline visualization |
| General panels | Any panel using useMessagesByPath or useMessageDataItem |
// User configures paths in panel settings
config.paths = ["/odom.pose.position.x", "/odom.twist.linear.x"];const pathItems = useCachedGetMessagePathDataItems(config.paths);
// Returns extracted values for each path, memoizedMessagePath object (parsing uses nearley, not free)useCachedGetMessagePathDataItems over manual extraction (handles memoization)lichtblick-suite/lichtblick
9589f38
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.