Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/damimartinez-ai-modern-approach
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
ai-modern-approach- Description
- None
- License
- MIT
- Instructions
- 36 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- invalid YAML frontmatter: Nested mappings are not allowed in compact mappings at line 2, column 14:
- name: missing
- description: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# Artificial Intelligence: A Modern Approach Apply this skill when the user is designing an intelligent agent, choosing between search/planning/reasoning techniques, or modeling a decision problem under uncertainty — use AIMA's agent-and-environment framing to pick the right class of solution instead of jumping straight to an algorithm. ## Core concepts **Rational agent & PEAS** — Frame any agent-design problem by its Performance measure (what defines success), Environment, Actuators (what it can do), and Sensors (what it can perceive). A "rational" agent is one that, given what it has perceived, acts to maximize expected performance — not one that's guaranteed correct or omniscient. When the user is designing an agent/bot/pipeline, start by making PEAS explicit; vague agent designs usually trace back to a vague performance measure. **Environment properties** — Classify the environment before picking an approach: fully vs. partially observable, deterministic vs. stochastic, episodic vs. sequential, static vs. dynamic, discrete vs. continuous, single- vs. multi-agent. These properties directly determine which technique class is even appropriate (e.g. classical search assumes deterministic/fully-observable; POMDPs and RL exist because that assumption breaks). **Agent architectures** — Match the agent's internal structure to what the task needs: simple reflex (condition-action rules, no memory), model-based reflex (tracks internal state to handle partial observability), goal-based (searches/plans toward an explicit goal), utility-based (optimizes a scalar utility, not just a boolean goal — needed when there are tradeoffs between outcomes), and learning agents (improve performance from experience). Don't default to the most complex architecture — pick the simplest one that satisfies the performance measure. **Uninformed vs. informed search** — For deterministic, discrete problems reducible to search: uninformed search (BFS, DFS, uniform-cost) explores blindly and guarantees correctness but scales poorly; informed/heuristic search (greedy best-first, A*) uses a heuristic to guide exploration efficiently. A* is optimal only if the heuristic is admissible (never overestimates true cost) — and efficient if it's also consistent. When proposing a heuristic, check whether it's actually admissible, not just "reasonable-sounding." **Adversarial search (game theory)** — For sequential, multi-agent, zero-sum-ish settings, use minimax (assume the opponent plays optimally against you) with alpha-beta pruning to cut the search space without changing the result. For large game trees, evaluation functions approximate deep search with heuristics at a cutoff depth — flag the accuracy/speed tradeoff this introduces. **Constraint Satisfaction Problems (CSPs)** — When a problem is really "assign values to variables subject to constraints" (scheduling, resource allocation, configuration) rather than a path-finding problem, model it as a CSP: variables, domains, constraints. Techniques like backtracking + constraint propagation (arc consistency) usually beat generic search for these — recognizing a problem as a CSP in disguise is often the highest-leverage move. **Knowledge representation & logical inference** — For problems needing explicit facts and rules (not just pattern-matching), propositional logic is simple but limited; first-order logic adds objects, relations, and quantifiers for expressive but harder-to-automate reasoning. Inference approaches (forward/backward chaining, resolution) trade completeness against efficiency — pick based on whether the domain needs guaranteed-correct conclusions or fast plausible ones. **Reasoning under uncertainty** — When the environment is stochastic or only partially observable, prefer probabilistic models over brittle rule-based logic. Bayesian networks compactly represent conditional dependencies between variables and support inference about unseen variables given evidence. Hidden Markov Models / Kalman filters handle uncertainty that evolves over time (tracking, sequential state estimation). **Markov Decision Processes & reinforcement learning** — For sequential decision-making under uncertainty where the agent gets rewards over time, model as an MDP (states, actions, transition probabilities, rewards) and solve for a policy (value iteration, policy iteration) when the model is known. When the transition/reward model isn't known in advance, that's the reinforcement-learning regime — the agent must learn a policy from experience, trading off exploration vs. exploitation. ## How to apply this 1. **Start from PEAS** when the user is designing an agent — force the performance measure and environment to be explicit before discussing algorithms. 2. **Classify the environment** (observable? deterministic? episodic? discrete? single-agent?) — this narrows the viable technique family fast and prevents applying classical search to a problem that actually needs POMDPs/RL, or vice versa. 3. **Check if the problem is secretly a CSP** before reaching for general search — scheduling/allocation/configuration problems usually are, and CSP techniques are far more efficient. 4. **For search/planning problems**, recommend uninformed vs. informed vs. adversarial search based on the structure (single-agent path problem vs. two-player zero-sum), and sanity-check any proposed heuristic for admissibility. 5. **For uncertainty**, prefer a probabilistic model (Bayesian network, HMM) over ad hoc rules when the domain is genuinely stochastic or evidence-based. 6. **For sequential decisions under uncertainty with rewards**, frame it as an MDP; only reach for RL if the transition/reward model truly isn't known ahead of time (otherwise planning on a known MDP is simpler and more reliable). Keep this grounded in the user's actual system/problem — apply the relevant piece(s) of the framework, don't lecture through the whole book's taxonomy every time.
From DamiMartinez/book-skills, MIT.
More from DamiMartinez/book-skills
- 0.592score
automate-boring-stuff
DamiMartinez
Applies Al Sweigart's "Automate the Boring Stuff with Python" framework — spotting repetitive/rule-based manual tasks worth scripting, picking the right tool…
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
c-programming-language
DamiMartinez
Applies Kernighan & Ritchie's "The C Programming Language" (2nd Edition, ANSI C) framework — pointer/array duality and pointer arithmetic, reading…
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
hard-thing-about-hard-things
DamiMartinez
Applies Ben Horowitz's "The Hard Thing About Hard Things" framework (The Struggle, wartime vs.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
high-output-management
DamiMartinez
Applies Andrew S.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
lean-startup
DamiMartinez
Applies Eric Ries's "The Lean Startup" framework (Build-Measure-Learn loop, validated learning, MVP, innovation accounting, pivot vs.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
machine-learning-mitchell
DamiMartinez
Applies Tom M.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
pragmatic-programmer
DamiMartinez
Applies Andrew Hunt & David Thomas's "The Pragmatic Programmer" (20th Anniversary / 2nd Edition, 2019) framework — DRY, orthogonality, reversibility, tracer…
SkillBFreshness: B★ 11Claude Code +9 - 0.583score
book-slug-here
DamiMartinez
Applies [Author]'s "[Book Title]" framework ([2-4 core concept names]) to [what kind of task].
SkillBFreshness: B★ 11Claude Code +9
Signals
- Stars
- 11
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Aug 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/DamiMartinez/book-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from DamiMartinez
- 0.592score
automate-boring-stuff
DamiMartinez
Applies Al Sweigart's "Automate the Boring Stuff with Python" framework — spotting repetitive/rule-based manual tasks worth scripting, picking the right tool…
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
c-programming-language
DamiMartinez
Applies Kernighan & Ritchie's "The C Programming Language" (2nd Edition, ANSI C) framework — pointer/array duality and pointer arithmetic, reading…
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
hard-thing-about-hard-things
DamiMartinez
Applies Ben Horowitz's "The Hard Thing About Hard Things" framework (The Struggle, wartime vs.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
high-output-management
DamiMartinez
Applies Andrew S.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
lean-startup
DamiMartinez
Applies Eric Ries's "The Lean Startup" framework (Build-Measure-Learn loop, validated learning, MVP, innovation accounting, pivot vs.
SkillBFreshness: B★ 11Claude Code +9 - 0.592score
machine-learning-mitchell
DamiMartinez
Applies Tom M.
SkillBFreshness: B★ 11Claude Code +9
Cite this page
ai-modern-approach skill. Agent Mart. https://agentmart.dev/skills/damimartinez-ai-modern-approach (last updated 2026-10-24)