{"agent":"claude","input":"A Linear issue labeled agent says: \"Add a table of contents at the top of each blog post, generated from the post's headings, with links that jump to each section. Skip posts with no headings. Let a post opt out with toc: false in its frontmatter.\" Before changing anything, read gatsby-config.js, gatsby-node.js and src/templates/blog-post.js to see how Markdown posts are transformed and rendered and which remark plugins are configured. Use the tableOfContents field gatsby-transformer-remark provides, add the remark plugin that gives headings ids and anchors in the position its documentation requires relative to the prism plugin, render the list in a labelled nav only when it is non-empty, and declare the optional toc frontmatter field in the schema customization so queries stay valid. Keep the existing post layout, previous and next links and SEO head. Run the production build, serve it and check the generated HTML of a post with headings and a post without, then open a pull request that links back to the issue and describes what was already available and what was added.","resources":[{"url":"https://github.com/your-org/your-app"}]}