Does the sentence use a simile or a metaphor?
My dog, Skip, is the security guard for our front yard mailbox.

 - simile
 - metaphor
My dog, Skip, is the security guard for our front yard mailbox.
The words Skip and security guard are compared without the word like or as. So, the sentence uses a metaphor.