Skip to content
Back to search

agentic-coding

Agentic Coding Rules, Templates etc...

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/sammcj/agentic-coding with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/sammcj/agentic-coding'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/sammcj--agentic-coding/badge.svg)](/listings/sammcj--agentic-coding)

HTML

<a href="/listings/sammcj--agentic-coding"><img src="/api/listings/sammcj--agentic-coding/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 88 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Sam's Agentic Coding Rules, Templates and Examples
  2. - [Coding Agent Rules, Skills and Templates](#coding-agent-rules-skills-and-templates)
  3. - [Tips For Agentic Coding](#tips-for-agentic-coding)
  4. - [Recommended 3rd Party Plugins and Tools](#recommended-3rd-party-plugins-and-tools)
  5. - [Getting High Quality Outcomes \& Context Engineering](#getting-high-quality-outcomes--context-engineering)
  6. - [Subscription vs Consumption Based Providers](#subscription-vs-consumption-based-providers)
  7. - [Links](#links)
  8. - [License](#license)
  9. My Agent Skills, Agent Rules for Agentic Coding.
  10. ## Coding Agent Rules, Skills and Templates
  11. The repository is organised with tool-agnostic content at the root level:
  12. - [Agent Skills](./Skills/) - Composable skills that extend agent capabilities
  13. - [Custom Agents](./Claude/agents/) - Custom defined agents (use sparingly).
  14. - [Agent Rules](./Rules/) - Agent instruction files
  15. - [Rules/CLAUDE.md](./Rules/CLAUDE.md) is usually the most up to date and comprehensive
  16. - [Agent Commands](./Claude/commands/) - (Prompt templates)
  17. - [Claude Local Marketplace](./Claude/plugins/local-marketplace/) - My local marketplace (plugins) for Claude Code, including LSP definitions.
  18. Most skills and rules are reasonably portable between agentic coding tools.
  19. ![Setup -> Plan -> Act -> Review & Iterate Diagram](setup-plan-act-iterate.svg)
  20. ---
  21. ## Tips For Agentic Coding
  22. - Lean into [skills](https://github.com/sammcj/agentic-coding/tree/main/Skills), dynamical context acquisition is very powerful.
  23. - Read my [best practices and common pitfalls when writing and reviewing agent skills](https://smcleod.net/2026/07/writing-and-reviewing-agent-skills-common-pitfalls/).
  24. - If Claude gets stuck on a complex issue, get it to stop and perform a systematic debug of the issue using the systematic-debugging skill.
  25. - Setup your permissions (in settings.json) to pre-approve/deny/ask commands and file paths that Claude may want to use.
  26. - Always enable sandboxing for agent commands, ideally run your whole agent in a sandbox when it is practical to do so.
  27. - Encourage Claude to use sub-agents to parallelise work and keep context lean where it is safe to do so.
  28. - Using voice to text with a tool like [Handy](https://handy.computer/) to dictate work to Claude Code is incredibly useful, often with voice you capture intent that you'd otherwise edit out.
  29. - Create shell aliases for the various claude CLI commands you use, e.g. `alias cc='claude --continue`, `alias ccr='claude --resume` etc.
  30. - Add your context usage, and limits consumption to the statusline.
  31. - Only add rules (CLAUDE.md / AGENTS.md) for behaviour that is different from standard for the agent/model, keep them concise and review with an aim to reduce over time.Only enable the rules you actually want to use**
  32. - Don't waste time with low end models for planning or coding, the higher error rates, lower quality code and the rework they often incur does not pay off (at least with current generation models).
  33. ### Recommended 3rd Party Plugins and Tools
  34. - [cc-safety-net](https://ccsafetynet.com/) (hooks that try to catch some destructive commands).
  35. - [context-mode](https://github.com/mksglu/context-mode) which significantly reduces context usage.
  36. - [Graphify](https://github.com/Graphify-Labs/graphify) can be useful for creating graphs of code and LLM wikis providing them with semantic search and context.
  37. Note: I do _not_ recommend using MCP tools like Github's where the agent is more than capable of using the gh cli or API directly, they tend to just waste tokens and bloat the context.
  38. ---
  39. ### Getting High Quality Outcomes & Context Engineering
  40. - Start with a plan - break down large or complex tasks into a checklist of items to complete, have the agent follow and mark off items has it completes them.
  41. - Relentlessly start fresh sessions, aim to keep the context under 200k - 300k max.
  42. - When you want to refresh the conversation ask the agent to document where it is up to and what's left to do (if you don't already have a dev plan with a checklist of tasks) and provide the document when starting a fresh session.
  43. - GIGO - Garbage In, Garbage Out. This aligns with the research that shows LLMs output correlates with the education level and quality of the input.
  44. - Make the system self-improving: If you spend a long time on a difficult problem with a coding agent and you finally crack it - get it to: 1. Summarise the fix 2. Why previous attempts did not work 3. What led them down the wrong paths initially 4. Suggest how to improve the agentic coding experience to prevent this in the future.
  45. - Understand that LLMs are stateless, this means that every time you send a message the entire context is sent back for re-processing.
  46. - Don't fall into the trap of thinking the solution is just around the corner when you've dug yourself into a hole troubleshooting, get the agent to document the problem, what it's tried to fix it so far and possible next things to try, then start a fresh session and provide the document.
  47. - Use checkpoints to roll back to previous points in the conversation or code changes when you've gone down the wrong path or want to explore a different approach.
  48. - Only use multimodal operations (images / screenshots as used by browser tools etc..) to a minimum - only when truly needed or where cost is not an issue as they use a lot of tokens.
  49. - Add files and directories you never want the agent to read to the agent's ignore file (e.g. `.clineignore` or claude.json's access rules).
  50. - Don't pipe data into LLMs and be wary of code with hardcoded data (XML, SVGs, i18n translations) inline. LLMs are designed to perform predictions (e.g. writing text / code and answering questions) effectively, they're not designed to parse large amounts of data at low cost - that's what software is for.
  51. ---
  52. ### Subscription vs Consumption Based Providers
  53. - A Claude Max 5 subscription will cost you $100 USD / month and get you over $1500+ equivalent worth of raw LLM API token usage, Max 20 gets you $2000-$5000~ worth.
  54. - Be wary of second tier subscription based AI coding tools, especially if they're built around an IDE like Cursor or Windsurf - they often provide you reduced versions of models with smaller context windows, artificially slowed response times and fallback to lower end models. Read the fine print especially if it seems too cheap to be true.
  55. - Some consumption based offerings like Github Copilot have very low rate limits if you use the service with anything other than their client. With Github Copilot's SDK you can use your entire months paid limits of Claude Sonnet access in just two days.
  56. ---
  57. ## Links
  58. - [Blog - smcleod.net](https://smcleod.net)
  59. - [GitHub - sammcj](https://github.com/sammcj)
  60. - [Claude Code](https://claude.com/product/claude-code)
  61. - [OpenCode](https://opencode.ai)
  62. - [Cline](https://cline.bot)
  63. ## License
  64. - This repository is licensed under the [Apache 2.0 License](./LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.